Using data
function with single_fetch
enabled breaks when returning a status of 204
#10328
Labels
data
function with single_fetch
enabled breaks when returning a status of 204
#10328
Reproduction
https://stackblitz.com/edit/remix-run-remix-mem1r9ss?file=app%2Froutes%2F_index.tsx
There are two pages (
index
andokay
with links on the page to each other)Click the submit. the
index page
has the action that returns a 204 and breaks, theokay page
returns 200 and works.System Info
Used Package Manager
yarn
Expected Behavior
An action that uses the
data
function should be able to return a 204 (no content). In my application, I have routes that are only actions that do not return data used as a quasi API (for setting user prefs, for example) that don't return anything (hence the 204).Actual Behavior
An action that uses the
data
function and returns a 204 status fails withUnable to decode turbo-stream response from URL...
when single_fetch is enabled.The text was updated successfully, but these errors were encountered: