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.
Disallow empty onSuccess exports in Gadget actions.
Remove empty onSuccess.
// empty onSuccess adds overhead without doing anything export const onSuccess: ActionOnSuccess = async () => {};
export const onSuccess: ActionOnSuccess = async ({ record }) => { // onSuccess must contain at least one statement, or be omitted entirely await doSomething(record); };
Was this page helpful?