You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there plans to implement a possibility to use a function in an object as an action function?
At the moment, if I have a function in an object or in an IIFE module(Revealing module, etc.) that I want to use as an action function, I need to put it in a separate variable:
It would be nice to have the possibility to use function which can be located not only on the first nesting level in use:
For example, in case of an object, the syntax can be like this:
<script>
let object = {func:function(node) {console.log(node.textContent } }</script><div use:object:func>Text</div>
The text was updated successfully, but these errors were encountered:
MarkTanashchuk
changed the title
Using functions not only on the first nesting level in actions(use:)
Using function not only on first nesting level in action(use:)
Sep 18, 2020
Are there plans to implement a possibility to use a function in an object as an action function?
At the moment, if I have a function in an object or in an IIFE module(Revealing module, etc.) that I want to use as an action function, I need to put it in a separate variable:
https://svelte.dev/repl/54dfee99c74a43bda2a74146b3eb685f?version=3.25.1
It would be nice to have the possibility to use function which can be located not only on the first nesting level in
use:
For example, in case of an object, the syntax can be like this:
The text was updated successfully, but these errors were encountered: