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

swr repeated render problem #2948

Open
qiaogaolong opened this issue Apr 23, 2024 · 0 comments
Open

swr repeated render problem #2948

qiaogaolong opened this issue Apr 23, 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.0 version

@promer94 This problem is still not fixed, in version '2.2.5'

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

No branches or pull requests

1 participant