-
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
feat(ScrollSaver): Add component to save scroll position of elements with scroll box #6011
base: master
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
e2e tests |
👀 Docs deployed
Commit 722ea95 |
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. Latest deployment of this branch, based on commit 805c715:
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #6011 +/- ##
==========================================
- Coverage 82.00% 79.40% -2.61%
==========================================
Files 327 309 -18
Lines 10149 10272 +123
Branches 3418 3616 +198
==========================================
- Hits 8323 8156 -167
- Misses 1826 2116 +290
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно. |
ScrollSaver is a component-wrapper which expects children and search for the ref in the children props ScrollSaverWithoutChildren is a component that receives ref from the outside as elementRef prop to support dynamic scroll control. useScrollSaver is a hook that allows to use scroll saver using hook. Expects ref as a prop to control scroll position
Use arguments in the hook
805c715
to
722ea95
Compare
Описание
Добавлен новый компонент-обёртка ScrollSaver и его разновидности: хук useScrollSaver и ScrollSaverWithoutChildren.
Основная цель компонента ScrollSaver сохранять позицию скролла дочернего элемента при переходах между
View
иPanel
.Изменения