You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
At the very least the return from useActionState should be compatible with signIn prop of SignInPage:
const[whatever,action,isPending]=useActionState(async(_,formData)=>{// logic},{},);// this one works but emits error in console<SignInPagesignIn={(provider,formData)=>action(formData)}/>// this one results in full screen error<SignInPagesignIn={action}/>
Error: An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an action prop, or dispatch manually inside startTransition
At the very least the return from useActionState should be compatible with signIn prop of SignInPage:
const[whatever,action,isPending]=useActionState(async(_,formData)=>{// logic},{},);// this one works but emits error in console<SignInPagesignIn={(provider,formData)=>action(formData)}/>// this one results in full screen error<SignInPagesignIn={action}/>
Error: An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an action prop, or dispatch manually inside startTransition
Supporting useActionState, useFormStatus and other form related React 19 hooks is planned after the React 19 upgrade PR (#4488) is merged and released next week
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Activity
jy95 commentedon Dec 7, 2024
+1
kirill-konshin commentedon Dec 29, 2024
At the very least the return from
useActionStateshould be compatible withsignInprop ofSignInPage:Error: An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an
actionprop, or dispatch manually insidestartTransitionsuren-atoyan commentedon Jan 3, 2025
@oliviertassinari any plans on this?
bharatkashyap commentedon Jan 3, 2025
Supporting
useActionState,useFormStatusand other form related React 19 hooks is planned after the React 19 upgrade PR (#4488) is merged and released next weekgithub-actions commentedon Jan 10, 2025
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.