-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(useExternRef): rm useMemo #7077
Conversation
- see #6920 --- ## Описание Для компилятора требуется знать точные зависимости в useMemo ## Изменение Избавился от useMemo, написал отдельный класс реализующий MutableRefObject
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e2e tests |
👀 Docs deployed
Commit eef90a5 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7077 +/- ##
==========================================
+ Coverage 83.57% 83.59% +0.02%
==========================================
Files 352 352
Lines 10551 10564 +13
Branches 3489 3493 +4
==========================================
+ Hits 8818 8831 +13
Misses 1733 1733
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
> Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef(). React проверяет наличие свойства current у объектов через hasOwnProperty и генерирует ошибки Исправляем реализацией hasOwnProperty - cause #7077
> Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef(). React проверяет наличие свойства current у объектов через hasOwnProperty и генерирует ошибки Исправляем реализацией hasOwnProperty - cause #7077
> Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef(). React проверяет наличие свойства current у объектов через hasOwnProperty и генерирует ошибки Исправляем реализацией hasOwnProperty - cause #7077
✅ v6.3.0 🎉 |
Описание
Для компилятора требуется знать точные зависимости в useMemo
Изменение
Избавился от useMemo, написал отдельный класс реализующий MutableRefObject