For such a requirement, it is indispensable to maintain the scroll bar position as state. The remaining method that can be thought of is to use the API provided by react router, onEnter to prefetch the data and set the redux store, and the table will automatically fill the data according to the store. In this way, when the page render is completed, setting the scroll bar position is completely no problem.
For such a requirement, it is indispensable to maintain the scroll bar position as state.
The remaining method that can be thought of is to use the API provided by react router, onEnter to prefetch the data and set the redux store, and the table will automatically fill the data according to the store. In this way, when the page render is completed, setting the scroll bar position is completely no problem.