8000 Implement forward directive by Tropix126 · Pull Request #60 · sveltejs/rfcs · GitHub
[go: up one dir, main page]

Skip to content

Implement forward directive #60

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix error in forward:use:internal usage example
  • Loading branch information
Tropix126 authored Oct 8, 2021
commit 36bd82be54f7ee61dd8e08df83ea17c3ee0d5736
2 changes: 1 addition & 1 deletion text/0000-forward-directive.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ This pattern could be similarly applied to actions:
}
</script>

<button forward:use={internalAction}></button>
<button forward:use:internalAction></button>
```

In this example, the `use` directive would be both forwarded to parent context as well as `internalAction` being applied. A possible pitfall would be how the animation API would play into this, as it's unclear how the compiler would deal with multiple animations.
Expand Down
0