Suggested pattern for optional props that are required in api request?
I constantly find myself doing this:
I know I can move stuff into a nested component (where
fooId is required), but wondering if there's another recommended pattern to avoid needing to use the ! operator?2 Replies
helpful-purple•7mo ago
that's what
skipToken is forother-emeraldOP•7mo ago
ooooh amazing thanks!!