Skip to content

When mergeProps merges with null it becomes null. Is that correct? #3041

Answered by snowystinger
rostero1 asked this question in Q&A
Discussion options

You must be logged in to vote

That's coming from https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/utils/src/mergeProps.ts#L45
where we check that the two props we are merging are functions.

We could probably ignore null/undefined for props with the name prefix on. We could just continue so we don't add them in.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rostero1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants