Fix incorrect order of directives

The event listener must be registered before the event is dispatched in order for this code snippet to work.
pull/9399/head
Wes Keiser 3 years ago committed by GitHub
parent 304a29e1cc
commit 93175b0a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ Sometimes actions emit custom events and apply custom attributes to the element
} }
</script> </script>
<div use:foo={{ prop: 'someValue' }} on:emit={handleEmit} /> <div on:emit={handleEmit} use:foo={{ prop: 'someValue' }} />
``` ```
## Types ## Types

Loading…
Cancel
Save