-
Notifications
You must be signed in to change notification settings - Fork 427
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
Enabling Single Fetch #876
Conversation
Thank you! Could you debug the playwright failures please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I have a few notes.
Co-authored-by: Kent C. Dodds <[email protected]>
Will it be possible to have a codemod for this upgrade. Manually upgrading all this for custom/ extended project seems a bit difficult. |
Maybe @jacobparis's tool could help. |
I found this https://codemod.com/registry/remix-single-fetch-recipe by jacobparis. |
I should take that down, it's for an old outdated single fetch API Remix team is working on some codemods for this now though |
Any update regarding this @kentcdodds , gentle reminder that RR7 was released, so if you wanna revamp, add / switch out some tech like biome or hono or bun feel free to ask =] |
I'm in the middle of the same single fetch effort on an app based off this template. I hit some funkiness with how the toasts work for error responses so came over here to see how y'all are handling it. The new behavior is that loaders don't rerun by default when an action returns a 4xx/5xx response. This means the root loader doesn't process the toast headers until the next GET/successful POST. @hakimLyon have you noticed if the toasts still work in this case? |
Hi @bkilrain , I haven’t noticed this behavior on my side. But in Remix Docs about Submission Revalidation Behavior |
Yep that's what I ended up doing on my side... just raising the possibility that this PR might need it as well.
|
Thank you so much for all your contributions to this and the #897 PR! Merged that other one so we're all set! |
This PR enables the v3_singleFetch feature.