-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow nullish actions #13555
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
Comments
This is helpful if you're passing nullable actions as props. |
5 tasks
I didn't say it wasn't helpful. But actions cannot be swapped out right now (see linked issues). So if your prop changes to non-nullish later, it won't update. |
Closing in favor of #6942 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
I'm frustrated when I have to use a
noop
action, as a placeholder while Svelte accepts nullish values in other places in the template.Describe the proposed solution
Do not error when nullish actions are used.
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: