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 #231

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

TheEdoRan
Copy link
Owner

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.

…to return object (#230)

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.

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

@TheEdoRan TheEdoRan changed the title fix(hooks): add isTransitioning and isPending shorthand statuses to return object fix(hooks): add isTransitioning and isPending shorthand statuses to return object Aug 14, 2024
@TheEdoRan TheEdoRan merged commit 6e23887 into main Aug 14, 2024
5 checks passed
@TheEdoRan TheEdoRan deleted the beta branch August 14, 2024 16:38
Copy link

🎉 This PR is included in version 7.6.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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant