ScrollTop and ScrollLeft state should be componentStates to avoid side effects #4826
Labels
good first issue
Good for newcomers
ready
scope: front
Issues that are affecting the frontend side only
size: minutes
type: chore
Scope & Context
While refactoring ScrollWrapper component, we have recently introduced two states: ScrollTop and ScrollLeft. These states should be componentState so each ScrollWrapper instance does have its own state. Otherwise they are all interacting together, creating re-renders
How:
In
scrollLeftState
(same forscrollTopState
)createComponentState
instead ofcreateState
useViewStates
for an example.The text was updated successfully, but these errors were encountered: