-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
First of all, thank you for the library 🙏
For one of my component, I'm using the useQueryLoader
+ usePreloadedQuery
hooks.
Everything was working flawlessly until I updated from React 17.0.2 to 18.1.0. I started getting:
next-dev.js?3515:25 Warning: usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.
at eval (webpack-internal:///./components/index/UserBeats.tsx:22:26)
at LoadableImpl (webpack-internal:///./node_modules/next/dist/shared/lib/loadable.js:101:38)
at Suspense
at eval (webpack-internal:///./components/index/IndexLoggedIn.tsx:120:69)
at LoadableImpl (webpack-internal:///./node_modules/next/dist/shared/lib/loadable.js:101:38)
at Suspense
at eval (webpack-internal:///./pages/index.tsx:45:73)
at div
at div
at eval (webpack-internal:///./components/nav/NavWeb.tsx:50:27)
at RelayEnvironmentProvider (webpack-internal:///./node_modules/react-relay/lib/relay-hooks/RelayEnvironmentProvider.js:21:24)
at FirebaseContextProvider (webpack-internal:///./lib/firebase.tsx:125:29)
at MyApp (webpack-internal:///./pages/_app.tsx:112:27)
at ErrorBoundary (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/client.js:8:20746)
at ReactDevOverlay (webpack-internal:///./node_modules/next/dist/compiled/@next/react-dev-overlay/client.js:8:23395)
at Container (webpack-internal:///./node_modules/next/dist/client/index.js:323:9)
at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:825:26)
at Root (webpack-internal:///./node_modules/next/dist/client/index.js:949:27)
It's not crashing or anything, it's just a warning and it actually disappears when going to prod, but I was wondering if it would ring a bell to you. I really cannot find anything online :/
Metadata
Metadata
Assignees
Labels
No labels