Fork me on GitHub
#helix
<
2021-07-20
>
kennytilton19:07:47

This https://lilac.town/writing/hooks-and-atoms/ was very helpful, @lilactown, as I work on integrating my state management hack with React. Thx! It confirmed my concern over ratoms, and my guess that my integration should "play well with others (React)". My plan is to have my state management scheme trigger a setState for views that have experienced a local change based on global state changing, achieving the locality of Reagent without forcing an entire tree to re-render because state got lifted to a common parent way up yonder. Your post ends with Helix described as "a different approach to using React with ClojureScript.". Were you planning on doing sth different in re React state management? ie, Something other than useState, props, and Context?

lilactown22:07:37

I meant that it is different, in that it just uses React state 😛 vs. reagent, rum, etc. that hold things in atoms outside of the tree

lilactown22:07:35

> My plan is to have my state management scheme trigger a setState for views that have experienced a local change based on global state changing, achieving the locality of Reagent without forcing an entire tree to re-render because state got lifted to a common parent way up yonder. in what way is what you're doing different than reagent?