Bernardo António Borda d'Água

Results 56 comments of Bernardo António Borda d'Água

> > > It seems like this is already possible by wrapping the element with a component and slot props -- maybe use:Component is just syntactical sugar for wrapping an...

> The use of :global isn't exactly awesome, but there are ways: > https://svelte.dev/repl/7b0c6c778aa04b2da0e862a71721c187?version=3.30.0 Ah, I see. One of my intentions with this RFC was to avoid `:global` as with...

There might be other ways. Introducing a new Element (or using ``) will always be necessary for styling though, since Svelte will delete non used styles. Without relying on global...

> One thing that is not clear to me is how well the proposed type of actions will be composable. A big strength of the current actions (and a reason...

@lukaszpolowczyk I don't quite understand what you mean. Would you mind giving another example? How would multiple targets work? When you apply an action to an Element, what would the...

@lukaszpolowczyk Ah I see what you mean now. I'll give you my thoughts once I have time to settle down in front of a computer and I might update the...

@Prinzhorn I'm not the right person to comment about your last paragraph, I'm really not that well versed in Svelte's internals. And I will put `` as an option in...

How would you suggest we keep both types of actions? A declarative action would be usable with `use` or as regular ol' function? Enabling `use` on `` is a really...

> For the compiler it's not an issue, if there is context="action" it will allow and fail if it sees a regular without context What about actions without a script...

> Edit: The big issue with DX/teaching is that from the import statement you cannot distinguish between action and component, but both are used very differently. However, now that I...