diff --git a/website/docs/plugins/lifecycle.mdx b/website/docs/plugins/lifecycle.mdx index a4a4296..d715c8f 100644 --- a/website/docs/plugins/lifecycle.mdx +++ b/website/docs/plugins/lifecycle.mdx @@ -198,9 +198,8 @@ const myPlugin = (): Plugin => { onExecute({ args }) { return { onExecuteDone: ({ result, setResult }) => { - if (isAsyncIterable(result)) { - // Here you can access result, and modify it with setResult if needed - } + if (!isAsyncIterable(result)) return + // Here you can access result, and modify it with setResult if needed }, }; },