You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and use fixedPageProps where pageProps would be inserted normally. Hopefully this is helpful for someone, though I do feel strongly that this should be solved by the SWC as default behavior.
The text was updated successfully, but these errors were encountered:
Verify Next.js canary release
Describe the bug
In order to use patterns like react-query prefetch, the transform must happen in _app.tsx, as well as in the specific pages.
In this and other common patterns, _app.tsx may be passing some pageProps into global providers.
As it is currently, pageProps will be passed into global providers untransformed, leading to difficult to solve bugs.
Expected behavior
I would expect
pageProps
to be transformed when received by _app.tsxReproduction link
No response
Version
Config
Additional context
An easy workaround for the time being is to do something like
and use
fixedPageProps
wherepageProps
would be inserted normally. Hopefully this is helpful for someone, though I do feel strongly that this should be solved by the SWC as default behavior.The text was updated successfully, but these errors were encountered: