rixo / svench

A lightweight workbench to develop your Svelte components in isolation

Home Page:svench-docs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turn View action into a function that can be passed around

jacob-8 opened this issue · comments

I expected to be able to use the action function in a manner like this:
image

But it doesn't work. It only works when used as on:click={action('clicked'). I would have expected it could be used as on:click={() => action('clicked')} as all of my other functions are.

My apologies. I'm off my rocker. Things work great as explained in https://svench-docs.vercel.app/_/Usage/actions, I just didn't know the proper syntax of doing action('copied', clip).