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

fix(hooks): add isTransitioning and isPending shorthand statuses to return object #230

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

TheEdoRan
Copy link
Owner

Proposed changes

This PR introduces a workaround for the issues described in #227, by adding isTransitioning and isPending shorthand statuses to the hooks return object. isTransitioning is the value returned from the useTransition hook that is used under the hood, while isPending has the value of isExecuting || isTransitioning, for convenience.

Related issue(s) or discussion(s)

re #227

Copy link

vercel bot commented Aug 14, 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 Aug 14, 2024 4:14pm
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 4:14pm

@TheEdoRan TheEdoRan mentioned this pull request Aug 14, 2024
2 tasks
@TheEdoRan TheEdoRan changed the base branch from main to beta August 14, 2024 16:15
@TheEdoRan TheEdoRan merged commit 90e522b into beta Aug 14, 2024
5 checks passed
@TheEdoRan TheEdoRan deleted the fix-hook-pending-state branch August 14, 2024 16:16
Copy link

🎉 This PR is included in version 7.6.1-beta.1 🎉

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.

1 participant