-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
handle null value return from content prop #224
Conversation
a-sync
commented
Mar 5, 2020
- allows a ref with null initial value in ts strict mode
* allows a ref with null initial value in ts strict mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change. It looks good overall, though the need for it is unfortunate. In an ideal world you would have the trigger
disabled until your content
was ready. While I'm ok solving this here, this really should be solved by the calling code.
Yes, you are correct, but unfortunetly it can't be done properly in ts with the current API.
Tbh. i'm not completely happy with the current solution myself, but it works for most intents and purposes.
|
I hear you. The issue is that we are trying to detect people using functional components without |
Published in v2.6.2 |