7nik

Results 188 comments of 7nik

It strongly reminds me of #9237, with a bit of another shape. Or `$derived.writable` idea that was mentioned a few times in various places. > Library authors to write higher-order...

> > see #11014 > > This proposal is specifically to allow external things to be "sveltified" _without_ going down the rabbit hole of allowing users to modify the compiler....

> ```js > function get_form(form_name: string) { > const pagestore = fromStore(page); > if (pagestore.current.form?.[form_name]) { > return pagestore.current.form[form_name]; > } else if (pagestore.current.data?.[form_name]) { > return pagestore.current.data[form_name]; > }...

> What error are you expecting? If I do > > ``` > > > inc > > ``` > > I also don't get an error It seems that...

I'm curious how desirable this behaviour is because it can cause the DOM structure to be different from the expected one, like in the example (the button goes inside the...

> valid HTML Technically, invalid HTML is impossible. Any arbitrary text can be rendered as HTML. Including `` (though it isn't treated as a self-closing tag), which causes a warning...

> I understand, my question is: should the following be prohibited? It feels like it would be a huge loss to me. Or, how should svelte figure out whether it...

That flickering seems to be #12844

You can do it. The example is French docs at https://sveltefr.dev/ and their sources are at https://github.com/Svelte-Society-Fr. There was also a speech/report about it on the [Svelte Summit Fall 2023](https://youtu.be/pTgIx-ucMsY?t=9332)....

> shouldn't be there to begin with Then you have screwed up ```html Hello World ``` and you should insert ugly `{' '}` between elements like in JSX. There is...