MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / clearData

Function clearData

src/useList/index.ts:105–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 };
104
105 const clearData = () => {
106 setData([]);
107 setTotal(0);
108 setError(undefined);
109 };
110
111 const clear = () => {
112 clearData();

Callers 3

mutateFunction · 0.85
clearFunction · 0.85
query.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected