swr icon indicating copy to clipboard operation
swr copied to clipboard

Repeat render

Open qiaogaolong opened this issue 3 months ago • 0 comments

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.

qiaogaolong avatar Mar 18 '24 07:03 qiaogaolong