docs: incorrect order of directives (#9414)

The event listener must be registered before the event is dispatched in order for this code snippet to work.
pull/9450/head
Wes Keiser 8 months ago committed by GitHub
parent 022c47edfc
commit f3e0db1e46
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>
<div use:foo={{ prop: 'someValue' }} on:emit={handleEmit} />
<div on:emit={handleEmit} use:foo={{ prop: 'someValue' }} />
```
## Types

Loading…
Cancel
Save