fix: add null check before accessing props#19
fix: add null check before accessing props#19blabute wants to merge 1 commit intoTheSpicyMeatball:mainfrom
Conversation
This corrects null reference error when a child is null/undefined (which is valid). Closes 18.
|
@TheSpicyMeatball curious your thoughts on this when you get a chance! |
|
Getting the same error: |
|
Found a temporary fix/workaround - wrap the node which contains a possible undefined value in a fragment component. For example: |
Thanks for the suggestion! It definitely works but since the offending code is valid jsx, I think the repo should be updated to handle it. |
|
@alleksei37, I shared this message on the initial issue in case you are looking for alternatives. |
This corrects null reference error when a child is null/undefined (which is valid).
Closes 18.