I am not a fan of some patterns in svelte, so I buckled up and created a set of utility tools for svelte users.
It's highly based on some Vue3 Composition API methods.
Everything is up-to-date with the newest svelte 5 runes.
No support for svelte 4.
watch(() => something, (newValue, oldValue) => {
}, {
lazy: true, // Do not run on mount.
pre: true // Before DOM changes
});const something = ref('123');
something.current = '1234';const something = computed(() => {
return '123'
});const something = fromStoreToWayBinding(existingStore);
something.current = '123'; // Changes will be applied both in store and in rune.