HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
e7h4n
ccstate
TypeScript2024–2024
e7h4n / ccstate

ccstate

Discover this repository through its Hacker News conversations.

2Distinct people
2Mentions
0Explicit recommenders
49GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2024-12-19 10:14:15 UTC to 2024-12-20 05:09:44 UTC.

012024-12-19 10:00:00 UTC to 2024-12-19 11:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsDec 19, 10:002024-12-19 11:00:00 UTC to 2024-12-19 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 12:00:00 UTC to 2024-12-19 13:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 13:00:00 UTC to 2024-12-19 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 14:00:00 UTC to 2024-12-19 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 15:00:00 UTC to 2024-12-19 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 16:00:00 UTC to 2024-12-19 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 17:00:00 UTC to 2024-12-19 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 18:00:00 UTC to 2024-12-19 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 19:00:00 UTC to 2024-12-19 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsDec 19, 19:002024-12-19 20:00:00 UTC to 2024-12-19 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 21:00:00 UTC to 2024-12-19 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 22:00:00 UTC to 2024-12-19 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-19 23:00:00 UTC to 2024-12-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 00:00:00 UTC to 2024-12-20 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 01:00:00 UTC to 2024-12-20 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 02:00:00 UTC to 2024-12-20 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 03:00:00 UTC to 2024-12-20 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 04:00:00 UTC to 2024-12-20 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-20 05:00:00 UTC to 2024-12-20 06:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 20, 05:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Dec 19, 10:002024-12-19 10:00:00 UTC2024-12-19 11:00:00 UTC110
Dec 19, 11:002024-12-19 11:00:00 UTC2024-12-19 12:00:00 UTC000
Dec 19, 12:002024-12-19 12:00:00 UTC2024-12-19 13:00:00 UTC000
Dec 19, 13:002024-12-19 13:00:00 UTC2024-12-19 14:00:00 UTC000
Dec 19, 14:002024-12-19 14:00:00 UTC2024-12-19 15:00:00 UTC000
Dec 19, 15:002024-12-19 15:00:00 UTC2024-12-19 16:00:00 UTC000
Dec 19, 16:002024-12-19 16:00:00 UTC2024-12-19 17:00:00 UTC000
Dec 19, 17:002024-12-19 17:00:00 UTC2024-12-19 18:00:00 UTC000
Dec 19, 18:002024-12-19 18:00:00 UTC2024-12-19 19:00:00 UTC000
Dec 19, 19:002024-12-19 19:00:00 UTC2024-12-19 20:00:00 UTC000
Dec 19, 20:002024-12-19 20:00:00 UTC2024-12-19 21:00:00 UTC000
Dec 19, 21:002024-12-19 21:00:00 UTC2024-12-19 22:00:00 UTC000
Dec 19, 22:002024-12-19 22:00:00 UTC2024-12-19 23:00:00 UTC000
Dec 19, 23:002024-12-19 23:00:00 UTC2024-12-20 00:00:00 UTC000
Dec 20, 00:002024-12-20 00:00:00 UTC2024-12-20 01:00:00 UTC000
Dec 20, 01:002024-12-20 01:00:00 UTC2024-12-20 02:00:00 UTC000
Dec 20, 02:002024-12-20 02:00:00 UTC2024-12-20 03:00:00 UTC000
Dec 20, 03:002024-12-20 03:00:00 UTC2024-12-20 04:00:00 UTC000
Dec 20, 04:002024-12-20 04:00:00 UTC2024-12-20 05:00:00 UTC000
Dec 20, 05:002024-12-20 05:00:00 UTC2024-12-20 06:00:00 UTC101

What Hacker News says

2 sources
Thank you for your question. This is a crucial part of CCState, and I plan to include this answer directly in the documentation. In short, a Computed atom is lazy if it's not directly or indirectly subscribed to. Otherwise, it will recalculate immediately when any of its dependencies change. For example, consider A(Computed) -> B(Computed) -> C(State): - If no atoms are subscribed to, updates to C will have a lazy effect on both A and B - If A is subscribed to, C's updates will synchronously trigger recalculations of both B and A, then notify A's subscribers - If B is subscribed, C's updates will synchronously trigger B's recalculation and notify B's subscribers, while A remains unaffected This is the current behavior almost identical to Jotai's implementation. However, while writing this answer, I realized this could potentially be simpl
Read the rest
er. Jotai's design choice stems from its notification mechanism, which performs distinct events. This means Jotai must re-evaluate immediately after a set operation to determine whether to notify its subscribers. This is one of Jotai's "magic" features, but in CCState, I try to avoid such magic. CCState doesn't perform event deduplication during notifications (though we might consider providing some higher-order functions later, but this won't be part of the core design). Therefore, perhaps CCState could make Computed evaluations always lazy. [EDIT]: As long as subscriber notifications are synchronous, Computed atoms must be recalculated synchronously. Otherwise, dependency analysis will have issues. I've written two test cases, https://codesandbox.io/p/sandbox/t2vl2m [EDIT 2]: I've added the relevant behaviors to the documentation. I hope I've explained it clearly. https://github.com/e7h4n/ccstate?tab=readme-ov-file#when-com...
In Show HN: CCState is a semantic, strict, and flexible state management library

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.