Is there an example of a Next.js shared app layout with extractPlasmicQueryData queryCache?
Not sure what to do with the query cache
Is there an example of a Next.js shared app layout with extractPlasmicQueryData queryCache?
Not sure what to do with the query cache
Are you asking how to pre-fetch query data in a shared app layout (_app.tsx) in pages router?
I think you can include the layout in the extractPlasmicQueryData
call to pre-fetch. Then the data will be available to both the page and the _app.tsx. Your _app.tsx should then be responsible for rendering the PlasmicRootProvider
with the pre-fetched query data.
If this is about app router, we are working on better alternatives to support this for RSC