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

Update prop store to support prefetching #282

Merged
merged 10 commits into from
Oct 17, 2024

Conversation

stackoverfloweth
Copy link
Contributor

this PR is my pass at solving the same problems as this PR.

most notably

  • moves from an option prefetch: true to separate methods because the implementations are considerably different
  • updates the store type to put prefetched: true on each store entry
  • ensures that matches that have prefetch: false in their route definition will not be prefetched even when the parent tries to

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for kitbag-router ready!

Name Link
🔨 Latest commit 5029f85
🔍 Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/670a8d6c044cae0008d893ef
😎 Deploy Preview https://deploy-preview-282--kitbag-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@pleek91 pleek91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to add some tests but this looks good. Nice job

src/services/createPropStore.ts Outdated Show resolved Hide resolved
src/services/createPropStore.ts Outdated Show resolved Hide resolved
@stackoverfloweth stackoverfloweth merged commit 1ba4d84 into main Oct 17, 2024
7 checks passed
@stackoverfloweth stackoverfloweth deleted the props-store-prefetching-evan branch October 17, 2024 16:08
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

Successfully merging this pull request may close these issues.

2 participants