After spending the whole day reversing @sitnik_en's logux, I finally figured out how they solve the problem of the log store. They don’t, lol. There are some mentions of Redis in the commercial version, though.

I spent a bit too much time on this project; will have to wrap the story up soon. The TL;DR insofar was that #Jotai is a more straightforward state management than #nanostores and is **by far** better documented. It's easy to get up and running, easy to scale. It fits the medium-sized scope better than Valtio (just as I thought). It feels somewhat close to ClojureScript state management, which I still find ideal.

Having an app with shared state and local state is a pain either way. You can’t easily make Loro, Jotai, and React friends. You’ll make sacrifices. In the end, the reasonable approach seems to be to batch local changes in, e.g. Jotai and sync them up to Loro. I didn’t try Automerge yet, but both are Rust WASM. Loro has some very readable source code (I might be biased towards Rust, but Logux is hard to follow), though.

Aaaand there goes my weekend. I should totally get back into ZFS poking; all this frontend mess makes me crave the sanity of good old C.

#frontend

#Nanostores feels technologically better but the documentation is so bad that I just have to read the source. This is the second frontend library where I stumble on absolutely abysmal docs (first one's datascript) made in Russia.

Were there no docs in USSR?

I’ve reached enough complexity in my hobby app where valtio becomes a liability. Having a single global mutating state felt weird and yeah, it scales weird. The question is, of course, what lesson did I learn?

Probably that cljs had extremely good solutions when it came to state management.

Either way, I’m eyeing #nanostores and #jotai now.

#frontend #react

Try jotai!
0%
Try nanostores!
0%
Ditch nextjs and rewrite it in clojure
100%
Poll ended at .

🚀 Take your #Angular skills to the next level at #angularday24! 🎉
These are just a few highlights of the in-depth content we’ll dive into at the conference. 

🌟 Transform Your App into a Progressive Web App (PWA)
🌟 Simplify State Management with Nano Stores
🌟 Embrace Zoneless Change Detection

And This Is Just the Beginning!

#frontend #JavaScript #PWA #NanoStores #bestpractices
---
#angularday24 is the 8th edition of the Italian angular conference.
📍Verona | 📆November 8, 2024