-
Notifications
You must be signed in to change notification settings - Fork 280
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 Remix Single Fetch in @shopify/oxygen-remix #2623
Comments
I forked this repo and made what I believe to be the only needed change to support Single Fetch. See: chinanderm@4cf7a87 |
You should be able to just import those 2 missing exports from We still need some time to turn on single fetch |
Thanks @wizardlyhel!
Just to confirm — we shouldn't be deploying Single Fetch code to production yet with Hydrogen/Oxygen? |
That's correct - There a couple things we had to do in order to support single fetch. |
'defer' is now marked as |
Can we keep this issue open? It seems that "Support Remix Single Fetch" is not completed yet |
What is the location of your example repository?
No response
Which package or tool is having this issue?
Oxygen
What version of that package or tool are you using?
@shopify/[email protected]
What version of Remix are you using?
2.13.1
Steps to Reproduce
Follow the Single Fetch migration docs from Remix and...
Turn on v3_singleFetch in Remix config:
Enable the TS behavior for Single Fetch:
Update
json()
usage withdata()
:Expected Behavior
@shopify/remix-oxygen
exports interfaceFuture
from@remix-run/server-runtime
so it can be appended to usingdeclare module
@shopify/remix-oxygen
exportsdata()
function from@remix-run/server-runtime
so it can be used in place ofjson()
Actual Behavior
@shopify/remix-oxygen
does not export interfaceFuture
from@remix-run/server-runtime
, thus it cannot be appended to usingdeclare module
@shopify/remix-oxygen
does not exportdata()
function from@remix-run/server-runtime
, thus it cannot be used in place ofjson()
The text was updated successfully, but these errors were encountered: