-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protect against children that may be null, this happens with conditio… #1296
Conversation
Added issue 1297 for this PR |
I haven't seen this come up before, do you have an example of where this is causing problems? |
Here is the code that reproduces the issue. I believe using the inline condition returns a null child on the false case
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days |
Is this pr merged? |
Will this be merged? I am also facing this issue with conditional rendering |
Squashed commit of the following: commit 5dfce15 Author: Jeff Rasmussen <[email protected]> Date: Mon Oct 5 14:51:58 2020 -0600 Check for null or undefined commit 79cf5bd Author: Jeff Rasmussen <[email protected]> Date: Mon Oct 5 14:51:27 2020 -0600 Undo vs code "help" regarding formatting style commit b20a36c Author: Jeff Rasmussen <[email protected]> Date: Mon Oct 5 14:20:44 2020 -0600 Fix missed ! commit 36fede3 Author: Jeff Rasmussen <[email protected]> Date: Mon Oct 5 14:14:14 2020 -0600 change check to validate against null instead of coercion to bool commit c0e3a28 Author: Jeff Rasmussen <[email protected]> Date: Mon Oct 5 14:12:18 2020 -0600 change check to validate against null instead of coercion to bool commit 91a4650 Author: Jeff Rasmussen <[email protected]> Date: Mon Sep 21 12:57:44 2020 -0600 Protect against children that may be null, this happens with conditional rendering https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator
Merged in 2591bf7 |
Will you add this into a new release? I just pulled via yarn again (
instead of
|
This is in |
Thanks! Issue is fixed now. |
…nal rendering https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator
Thanks for submitting a pull request to RGL!
Please reference an open issue. If one has not been created, please create one along with a failing
example or test case.
Please do not commit built files (
/dist
) to pull requests. They are built only at release.