Closed ekhaled closed 3 years ago
<script> import { createEventDispatcher } from 'svelte'; const dispatch = createEventDispatcher(); dispatch('notify', 'data'); function someFunc(cond){ dispatch('start', 'data'); if(cond){ dispatch('end', 'data'); } } </script>
Here, notify and start are picked up, but end is completely ignored
notify
start
end
Here,
notify
andstart
are picked up, butend
is completely ignored