diff --git a/.changeset/chilled-ants-care.md b/.changeset/chilled-ants-care.md index c66d4f7dc55..74d2a346d91 100644 --- a/.changeset/chilled-ants-care.md +++ b/.changeset/chilled-ants-care.md @@ -3,4 +3,4 @@ "@remix-run/dev": patch --- -fix(remix-dev): Remove logical nullish assignment which is incompatible with Node v14. +Remove logical nullish assignment, which is incompatible with Node v14. diff --git a/.changeset/nervous-walls-sing.md b/.changeset/nervous-walls-sing.md index 96ba17a3aef..6178da7a0bc 100644 --- a/.changeset/nervous-walls-sing.md +++ b/.changeset/nervous-walls-sing.md @@ -3,8 +3,4 @@ "@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. +Fix inferred types for `useLoaderData` and `useActionData` to preserve `null`s. Previously, `null` types were being replaced by `never` 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` types.