Closed escfex closed 3 months ago
感谢
@irychen Scrolling does not occur. Does this solution work for you? I assume that scrolling occurs until the component appears in the DOM
@irychen Scrolling does not occur. Does this solution work for you? I assume that scrolling occurs until the component appears in the DOM
you need extra hook like above or just use the MemoScrollTopWrapper component https://stackblitz.com/github/irychen/keepalive-for-react/tree/main/examples/react-router-dom-simple-starter?file=src%2Flayout%2Findex.tsx
参考一下