swr
swr copied to clipboard
Repeat render
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.