Content pfp
Content
@
0 reply
0 recast
0 reaction

Colin pfp
Colin
@colin
My thoughts after several weeks of working with NextJS 14 / app dir / RSCs: - bit of a learning curve (lots of stuff happens behind the scenes, eg there are various levels of caching on Vercel by default) - Jotai is much cleaner and easier than Redux - deduped fetching in RSCs is awesome and much better than getStaticProps - Suspense and loading states are great and make the app feel much more responsive - Lots more files, since we now need to separate client & server components on a per-file basis (and use folder-based routing) - Intercepting / parallel routes are neat Overall, I'm a big fan and it seems like a large improvement over the previous paradigm
3 replies
1 recast
32 reactions

Zinger ↑ pfp
Zinger ↑
@zinger
You might also like Zustand (same crew at Jotai), a bit more similar to Redux vs. the atomic state model of Jotai (which models Meta's Recoil) https://docs.pmnd.rs/zustand/getting-started/comparison https://jotai.org/docs/basics/comparison
1 reply
0 recast
0 reaction

Colin pfp
Colin
@colin
Looked into it and my understanding was that zustand is meant more for global state vs jotai was moreso to avoid prop drilling. No more need for global state in the paragraph codebase since we now just fetch data everywhere, so jotai seemed like a better fit to share smaller amounts of data to child components
1 reply
0 recast
2 reactions

Zinger ↑ pfp
Zinger ↑
@zinger
Makes sense, that's a good summary!
0 reply
0 recast
1 reaction