MCPcopy Create free account
hub / github.com/Swizec/article-threader / makeThread

Function makeThread

components/KeyInsight.tsx:49–62  ·  view source on GitHub ↗
(event: React.FormEvent)

Source from the content-addressed store, hash-verified

47 } = useMutation(findKeyInsight);
48
49 async function makeThread(event: React.FormEvent) {
50 event.preventDefault();
51
52 setIsError(false);
53
54 if (url) {
55 try {
56 await mutateAsync({ url });
57 } catch (e) {
58 console.error(e);
59 setIsError(true);
60 }
61 }
62 }
63
64 return (
65 <Box

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected