Post

To help speed up the #svelte 5 migration, I wrote this simple writable store wrapper, that also exposes a $state value. This way I don't have to migrate all my code at once, but progressively switch to the $state. This works well, but did I miss a built-in solution for this? Feedback welcome!

Here is the updated version that makes use of the built-in "fromStore". I changed the .value accessor to .current as well, so it's in line with the "fromStore" API.

0 reposts0 likes

No replies yet.