Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextjs 13 Feedback #242

Open
litewarp opened this issue Nov 8, 2022 · 0 comments
Open

Nextjs 13 Feedback #242

litewarp opened this issue Nov 8, 2022 · 0 comments

Comments

@litewarp
Copy link

litewarp commented Nov 8, 2022

Hello! I adapted your data-driven-dependencies example to work with nextjs 13 and wanted to get your feedback on whether certain design choices make sense. Long story short, this method uses the same network cache strategy to convert the pre-fetched data into a preloaded query. So far, it seems to work? But I appreciate any insight you have. And thanks for all your hard work!

The big questions I have are:
(i) whether exposing the network cache by shoehorning it onto the relay network would cause any ill side effects, including even when wrapped in useMemo, and;
(ii) whether there is a better way to pass the preloaded query to the client component through the hydrator other than by wrapping the client component with a context provider.

Thanks again!
https://gist.github.com/litewarp/cc64c7624cad5702923aef62fcb2ff31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant