Results 54 comments of promer94

https://github.com/webpack/webpack/issues/16125 It's webpack's issue. I am sorry but i don't know any workaround for this

Could you add a test for this pr ?

Thanks for you reproduction and explanation! It's indeed a problem but it would only happen if you are using the same `cache` object when remounting the `SWRConfig`. Do you have...

I think you could create a top-level Provider component ```tsx function ConfigProvider({ childern }) { return cache }}>{childern}; } ``` And just rerender the children. It's would more performant than...

Or you can deepclone the current cache when switching the app ```tsx let cache = new Map([["foo", "bar"]]); export default function App() { const [pathname, setPathname] = useState("/"); console.log("path", pathname);...

Most of tests are based on `focus` event and `fireEvent.focus`. I guess you need to replace the `focus` event with `visibilitychange` event like what `@tanstack/query` did

https://github.com/TanStack/query/pull/4805/files#diff-3cd8cae55f836a38ea976d6cbf9f1b59e8fdfa4d3218b123cb1f9dccfc6824d2 I am sure what blocks you but i think this diff clearly shows what you need to do here.

Thanks for your detailed reproduction ! Since the `fallback` data are not persisted in `cache`, `mutate` is not able to access it directly. This is a expected behavior. You can...

Repro: https://codesandbox.io/s/swr-ispaused-bx1i3z?file=/src/App.js after setting `isPause = true`, data will never be able to update by auto revalidation. I think the reason of this problem is beacause we only call the...