Support null
/undefined
values in array returned from LinksFunction
#5056
markdalgleish
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd primarily like this to make it easier to deal with the conditional nature of
cssBundleHref
when using CSS Modules, Vanilla Extract, etc.When adding a link descriptor referencing
cssBundleHref
, the value could beundefined
in the case where a CSS bundle isn't generated, so you need to write it this way to make TypeScript happy:It'd be nice to be able to avoid a noisy array spread and supply an explicit
null
value instead:We could potentially support
undefined
too, in which case you could write this:Beta Was this translation helpful? Give feedback.
All reactions