Skip to content

Commit

Permalink
Create nervous-walls-sing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Jul 30, 2022
1 parent 6174e3b commit c25ab7f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changeset/nervous-walls-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"remix": patch
"@remix-run/deno": patch
"@remix-run/react": patch
---

Fix inferred types for `useLoaderData` and `useActionData` to preserve `null`s.

Previously, `null`s were being replaced by `never`s due to usage of `NonNullable` in `UndefinedOptionals`.
Properties that aren't unions with `undefined` are now kept as-is, while properties that _do_ include `undefined`
are still made optional, but _only_ remove `undefined` from the property type whereas `NonNullable` also removed `null`s.

0 comments on commit c25ab7f

Please sign in to comment.