MCPcopy Create free account
hub / github.com/BuilderIO/mitosis / getCreateStoreStr

Function getCreateStoreStr

packages/core/src/generators/solid/state/store.ts:49–50  ·  view source on GitHub ↗
(initialValue: string)

Source from the content-addressed store, hash-verified

47 }
48
49 const getCreateStoreStr = (initialValue: string) =>
50 `const [${key}, ${getStateSetterName(key)}] = createStore(${initialValue})`;
51
52 const getDefaultCase = () => pipe(value, mapValue, getCreateStoreStr);
53

Callers 1

stateUpdaterFunction · 0.85

Calls 1

getStateSetterNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…