4 ms·
Wow, the optimistic UI example is so simple: https://svelte.dev/docs/svelte/$derived#Overriding-derived-values https://svelte.dev/docs/svelte/$derived#Overridin
by benatkin 2y ago
Wow, the optimistic UI example is so simple: https://svelte.dev/docs/svelte/$derived#Overriding-derived-values https://svelte.dev/docs/svelte/$derived#Overriding-derived-v...
I wonder what Ryan Carniato, the author of Solid, thinks of it.
- mightyham 2y agoImplementing a settable derived primitive like that is already possible in SolidJS userspace. You can roll your own or simply use https://primitives.solidjs.community/package/memo#createwritablememo https://primitives.solidjs.community/package/memo#createwrit....
- eyelidlessness 2y agoHe’s been discussing writable memos for Solid 2.0 off and on for a bit. While the other response is right that you can roll your own, it seems pretty likely this will be a first class thing in Solid too.