Skip to content
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

Repeat render #2914

Open
qiaogaolong opened this issue Mar 18, 2024 · 0 comments
Open

Repeat render #2914

qiaogaolong opened this issue Mar 18, 2024 · 0 comments

Comments

@qiaogaolong
Copy link

Use the react-router-v6 version and use Outlet to map sub-components. When the navigation is rendered, the const { data } = useSWR('/api/user', fetcher) data of the sub-component will be re-rendered. This is a problem. swr2.2.5 version

I checked version 2.1.2 and it is correct. Please check the changes from 2.1.2 to 2.1.3. Starting from 2.1.3, other pages will be rendered when the status changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants