fix(docs): update all lifecycle hooks to use the new unified param object (part 2)#2480
fix(docs): update all lifecycle hooks to use the new unified param object (part 2)#2480
Conversation
|
|
Caution Review failedThe pull request is closed. WalkthroughThe documentation updates unify lifecycle callback signatures to a single destructured object parameter across examples. In config and tasks docs, onStart, init, cleanup, onSuccess, onComplete, and onFailure change from multi-argument forms (e.g., payload, output, { ctx }) to async ({ payload, output, ctx }). The error-handling hook is renamed from handleError to catchError, with its signature updated to async ({ payload, error, ctx, retryAt }). These edits appear in docs/config/config-file.mdx, docs/errors-retrying.mdx, docs/migrating-from-v3.mdx, and docs/tasks/overview.mdx. The underlying example logic remains unchanged. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10–15 minutes 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.