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

RSC: Cache client side navigation #10686

Merged
merged 2 commits into from
May 26, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented May 26, 2024

DM from Dan A: React doesn’t really support using state as the initial cache because if something suspends, we throw away the pending tree

So I reimplemented client side routing/navigation. The implementation is loosely based on https://github.com/reactjs/server-components-demo/blob/95fcac10102d20722af60506af3b785b557c5fd7/src/framework/router.js

@Tobbe Tobbe added release:feature This PR introduces a new feature changesets-ok Override the changesets check labels May 26, 2024
@Tobbe Tobbe added this to the RSC milestone May 26, 2024
@Tobbe Tobbe merged commit 95a91ce into redwoodjs:main May 26, 2024
46 of 49 checks passed
@Tobbe Tobbe deleted the tobbe-rsc-cached-client-side-routing branch May 26, 2024 20:16
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants