Mitchel Jager
Mitchel Jager
I've created an updated package that works with Svelte 4. There were 2 other packages that this package depended on that I've also updated. https://github.com/Playpilot/svelte-htm. It's largely a copy paste...
I've managed to fix it myself by emptying the element before caching. ```js document.addEventListener("turbolinks:before-cache", function() { const svelteComponents = document.querySelectorAll("[data-svelte-component]") svelteComponents.forEach(element => element.innerHTML = null) }) ```
If you are using Svelte 4, use version 1.x.x. Version 2.x.x is reserved for Svelte 5.
I might have used the wrong version, using `^5.0.0` instead of `>=5.0.0`. Not entirely sure, but let me know if this still happens with the Svelte 5 branch
This should now be good with the Svelte 5 release
Cool idea, sure!
Neat idea! I will look into it
I can't reproduce that myself in Firefox. It's not a SortableJS option, that's for sure. It looks like a mismatch between the sortable state and the Svelte store.
@netux I think that works!