-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
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.
<script>
const foo = undefined;
</script>
<button onclick={foo}>foo</button>
<button class:foo>bar</button>
<!-- Error: foo is not a function -->
<button use:foo>bar</button>
Importance
would make my life easier
jrmajor
Metadata
Metadata
Assignees
Labels
No labels