Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Nov 1, 2022
1 parent ce34caa commit 51f453a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .changeset/proud-timers-tickle.md
Expand Up @@ -2,4 +2,5 @@
"@remix-run/router": patch
---

fix: actions/loaders returning undefined should throw an error
- Throw an error if an `action`/`loader` function returns `undefined` as revalidations need to know whether the loader has previously been executed. `undefined` also causes issues during SSR stringification for hydration. You should always ensure you loader/acton return a value, and you may return `null` if you don't wish to return anything.
- Enhanced `ErrorResponse` bodies to contain more descriptive text in internal 403/404/405 scenarios

0 comments on commit 51f453a

Please sign in to comment.