MCPcopy Create free account
hub / github.com/Recordscript/recordscript / createInvokeResource

Function createInvokeResource

src/App.tsx:101–105  ·  view source on GitHub ↗
(cmd: string, args?: InvokeArgs)

Source from the content-addressed store, hash-verified

99}
100
101function createInvokeResource<R>(cmd: string, args?: InvokeArgs) {
102 return createResource(async () => {
103 return await invoke(cmd, args) as R;
104 });
105}
106
107function EmailConfigurator<P extends { on_save: () => void }>(props: P) {
108 const [smtp_config, { refetch: update_smtp_config }] = createInvokeResource<

Callers 4

EmailConfiguratorFunction · 0.85
AppFunction · 0.85
ScreenFunction · 0.85
AboutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected