| Recommended | Strict | Auto-fixable | Scope |
|---|
| warn | error | false | Gadget action files |
What the linter reports:
- Do not await handle.result() in onSuccess, it bills the full wait time.
- Do not await handle.result() in run, it causes GGT_TRANSACTION_TIMEOUT.
Examples
api/models/widget/actions/create.ts
export const run = async () => {
const handle = await api.enqueue(api.publish, {});
// awaiting the result blocks the transaction and causes GGT_TRANSACTION_TIMEOUT
await handle.result();
};
api/models/widget/actions/create.ts
export const run = async () => {
// enqueue the background action and move on
await api.enqueue(api.publish, {});
};
Last modified on March 10, 2026