Skip to content
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

Validate if string is null #166

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Conversation

lucodifier
Copy link

No description provided.

Copy link
Owner

@zpao zpao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't be getting null/undefined in here. If we want the component to gracefully handled null/undefined (which, I don't know that I do) then it should be captured in render and we should return null. But as I noted on your issue, your code should probably check values to begine with.

@lucodifier
Copy link
Author

lucodifier commented Sep 14, 2021 via email

@lucodifier
Copy link
Author

lucodifier commented Sep 14, 2021 via email

@lucodifier
Copy link
Author

lucodifier commented Sep 14, 2021 via email

@zpao
Copy link
Owner

zpao commented Sep 16, 2021

I can't see what your code is, there are no images inline here (I think responding via email may not include those). That said, I'm fairly certain your code must be doing something that's resulting in null/undefined being passed in. Maybe via garbage collection of that model object and a re-render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants