MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / fetchState

Function fetchState

src/importer/reducer.tsx:203–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 useEffect(() => {
203 const fetchState = async () => {
204 const newState = await buildState(sheets, persistenceConfig);
205 dispatch({ type: 'SET_STATE', payload: { state: newState } });
206 };
207 if (initialState == null) {
208 fetchState();
209 }

Callers 1

usePersistedReducerFunction · 0.85

Calls 1

buildStateFunction · 0.90

Tested by

no test coverage detected