MCPcopy Create free account
hub / github.com/WebDevSimplified/course-platform / performAction

Function performAction

src/components/ActionButton.tsx:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 const [isLoading, startTransition] = useTransition()
30
31 function performAction() {
32 startTransition(async () => {
33 const data = await action()
34 actionToast({ actionData: data })
35 })
36 }
37
38 if (requireAreYouSure) {
39 return (

Callers

nothing calls this directly

Calls 1

actionToastFunction · 0.90

Tested by

no test coverage detected