What enhanced benefit does unstable_data offer over the standard alternatives? #9883
-
Forgive me if there's a misunderstanding, but is What is the superior benefit of using Example: response.status = 418;
response.headers.set("Catche-Control", "no-store");
throw response; Another Example: return new Response(null, {
status: 303,
headers: {
Location: "/some/where/else",
},
}); |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Aug 18, 2024
Replies: 1 comment 2 replies
-
The response object is not received anymore with single fetch If you return a custom response object you will bail out of single fetch The unstable_data is used by Remix to allow single fetch and turbo-stream responses |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bluefire2121
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The response object is not received anymore with single fetch
If you return a custom response object you will bail out of single fetch
The unstable_data is used by Remix to allow single fetch and turbo-stream responses