MCPcopy
hub / github.com/chartdb/chartdb / fetchScript

Function fetchScript

src/dialogs/export-sql-dialog/export-sql-dialog.tsx:179–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 setScript(undefined);
178 setError(false);
179 const fetchScript = async () => {
180 try {
181 setIsScriptLoading(true);
182 const script = await exportSQLScript();
183 setScript(script);
184 setIsScriptLoading(false);
185 } catch {
186 setError(true);
187 }
188 };
189 fetchScript();
190
191 return () => {

Callers 1

ExportSQLDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected