[HN Gopher] Show HN: CCState is a semantic, strict, and flexible...
___________________________________________________________________
Show HN: CCState is a semantic, strict, and flexible state
management library
CCState is a semantic, strict, and flexible state management
library suitable for medium to large single-page applications with
complex state management needs. The name of CCState comes from
three basic data types: computed, command, and state.
Author : acmerfight
Score : 14 points
Date : 2024-12-19 10:14 UTC (12 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| kaoD wrote:
| Interesting! Will give it a try.
|
| I like how you properly used useSyncExternalStore and
| AbortController for signaling. Always a good sign seeing good use
| of APIs.
|
| (EDIT) Quick question: will computed values be lazy _and_ cached?
| I 'm worried changing an atom could trigger a huge cascade of
| changes (most of which will not even be observed) but also that
| expensive values could get thrown away once not observed anymore
| (even if briefly, think e.g. a quick remount) but also that it
| might get cached for too long (or never discarded).
|
| How is all this handled internally?
|
| (EDIT2) I'm reading through the README and the
| rationale/comparison with Jotai looks very solid. I'm really
| impressed. Kudos.
___________________________________________________________________
(page generated 2024-12-19 23:01 UTC)