Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Archived: Gadget is winding down. These tools are no longer maintained.
Disallow returning a value from onSuccess in Gadget actions.
onSuccess return values are ignored. Use return; or remove it.
export const onSuccess: ActionOnSuccess = async ({ record }) => { await notify(record); // return values in onSuccess are silently ignored by Gadget return someVariable; };
export const onSuccess: ActionOnSuccess = async ({ record }) => { await notify(record); // no return value - onSuccess results are always discarded };
Was this page helpful?