Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add action execution callbacks #161

Merged
merged 7 commits into from
Jun 11, 2024
Merged

feat: add action execution callbacks #161

merged 7 commits into from
Jun 11, 2024

Conversation

TheEdoRan
Copy link
Owner

This PR adds support for providing optional action execution callbacks when defining an action, invoked after the action succeeds/fails, on the server side. The callbacks are: onSuccess, onError and onSettled, the same as the hook ones, minus onExecute (since it provides the same functionality as middleware functions in this context).

Copy link

vercel bot commented Jun 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-safe-action-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 0:47am
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 0:47am

Copy link

🎉 This PR is included in version 7.0.0-next.53 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] [v7] Support action execution callbacks
1 participant