-
Notifications
You must be signed in to change notification settings - Fork 163
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
Support single fetch (v3_singleFetch
)
#921
Comments
I have the same issue issue when I tried to update remix some time back. This needs to be fixed |
Hi folks! 👋 The team is currently looking into how we can best support single fetch with the Shopify Remix library. The problem is occurring because the Shopify Remix package in certain scenarios adds headers to thrown responses. App Bridge then takes specific actions on these request based on those added headers. When I have spoken to the Remix team, and our team is determining the best path forward that will allow us to enable this flag, while also causing the least disruption to developers using our libraries. For the time being, if you want to use the future flag, adding a headers function to your routes to merge the headers should work. Though something to keep in mind is that there are several scenarios when the library adds headers to requests. One of those being to handle certain scenarios when no valid session token is found. To ensure this scenario is handled by the library with Sidenote:
Thank you for your patience on this! |
Typescript raises errors relating to these future flags notable because single fetch deprecated the "json" helper function. Something needs to be at least acknowledged here. |
This package doesn't work with single fetch yet.
It took some digging through closed issues and pull requests to figure that out! So I hope it's alright if I create an issue where we can subscribe for updates and share workarounds.
I ran into the same problem as #897. A resource route that uses
redirect(…)
stopped working with single fetch, it hung on a visible "handling response" message.@silintzir suggested a workaround in #897 (comment) that seems to work, here's our version of it:
The text was updated successfully, but these errors were encountered: