MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / useState

Function useState

dashboard/test/hermes-wrapper.test.mjs:18–26  ·  view source on GitHub ↗
(initial)

Source from the content-addressed store, hash-verified

16 };
17 },
18 useState(initial) {
19 let value = typeof initial === "function" ? initial() : initial;
20 return [
21 value,
22 (next) => {
23 value = typeof next === "function" ? next(value) : next;
24 },
25 ];
26 },
27 useEffect(run) {
28 run();
29 },

Callers 15

SavingsExplorerFunction · 0.85
SessionsPanelFunction · 0.85
AppFunction · 0.85
SimilarityPanelFunction · 0.85
GrowthSparklineFunction · 0.85
HolographicViewFunction · 0.85
HolographicMemoryPageFunction · 0.85
AssociationGraphFunction · 0.85
SpinnerFunction · 0.85
SemanticMapFunction · 0.85
SidePanelFunction · 0.85
useGraphLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected