Matei Trandafir
Matei Trandafir
Here's a proposal for implementing modals/drawers/popups/whatever: [REPL](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE41SwY6bMBD9lZHTSom0CUmrPSyQqJV67a230gPBAxmtsS3bpEkR_15jCAnalVqJA372vDfz5rWsJIGWxT9bJvMaWcy-as2emLvq_mDPKBz6s1WNKXoktYUh7Q6ZzBzVWhkH3ygXqvqey7xCA6VRNWRsE83gzcCUsYe6FpRGOTyD7t-FaXTXlulcNQpgu7CStEYHPNwuC6EsrrpeNOV0BuuuAvcZ08qSIyVjMChyR2dM4KgMRxODVYI47PQFjiIvXhPQOeckqxg-GawzFkbP3I8TWfBfPmoNaHpsnFPyHaH86Ikb54Wc0jFsN8-eLQFD1cndjhkDJQtBxeu-Da13h0saDZRBNo38FP6vjcZBu-DFKDrVLlewPzy4uxxaXHWBpMenpid6v-RacSoJOYudabB7mjIx8_o_0gGFkg4vzhvgORuBo2ti2gzs4YN1ucOlbIRY9VNkviLkomxk0Xs2G2AF7eDwVM_7czdUTiXBteXbx73K-H4Wo3ZB5djSPSXEfeMDuK6Hoae1t18MSp-T9xI2LYfKYS8hBaFwMae79XePR0kX5MmA_ibuTjHsttuPI3LCISYP0J81-T4uMby8vCS3aa0W-TWGytCNywMFrslhbWMo0K_FjDdHH-7KqEbydaGE8slf7Dz_dvt5m9ytChO8zcav7i_G7V1EOwQAAA==) While this does still use a "singleton" state under the hood, I'm sure this can be avoided. The idea is that, with snippets,...
@7nik My bad! True, `.svelte.ts` is still just a `.ts` file. Updated the post accordingly, to use a rune instead with regular JS syntax.
This is pure Svelte 4 code - no runes (such as effects) are used. I've been digging for hours now and I've found this code: ```ts let extensionGroups: Extensions $:...
Finally, I managed to get a reproduction: [stackblitz](https://stackblitz.com/edit/sveltejs-kit-template-default-zkgt3y?description=The%20default%20SvelteKit%20template,%20generated%20with%20create-svelte&file=src%2Froutes%2F%2Bpage.svelte,package.json,src%2Froutes%2FTiptap.svelte&title=SvelteKit%20Default%20Template). Open the console and look at the messages. You'll see that `destroying` is printed over 100 times. It's not enough to cause...
Wow, insane work! I thought it might have something to do with Tiptap updating the DOM. Thanks a lot for the clean REPL, and for the workaround! Updating the original...
@dummdidumm I did not know that. Could this potentially be re-opened and tagged as documentation? I could not find info about this anywhere, neither on the official nor the preview...
Yep, that's exactly what I did. That page says that the types may be incomplete, but doesn't actually state what exactly those types are or how to use them, and...
Simplified [REPL](https://svelte.dev/repl/fd0ed6cbd3714d449c1be6e5f98d8866?version=4.2.15). Also, bug is not present when using Svelte 5.
I definitely do agree with this one - this is how state works in most frameworks, and even how it worked before with normal `let` declarations. Especially useful when having...
Probably related to #11412