swr icon indicating copy to clipboard operation
swr copied to clipboard

swr repeated render problem

Open qiaogaolong opened this issue 2 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.0 version

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

qiaogaolong avatar Apr 23 '24 08:04 qiaogaolong