Skip to content

Commit 0cca929

Browse files
committed
refactor(hooks): deprecate useStateAction hook
1 parent a517386 commit 0cca929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next-safe-action/src/stateful-hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type { InferInputOrDefault, StandardSchemaV1 } from "./standard.types";
1010
* Use the stateful action from a Client Component via hook. Used for actions defined with [`stateAction`](https://next-safe-action.dev/docs/define-actions/instance-methods#action--stateaction).
1111
* @param safeActionFn The action function
1212
* @param utils Optional `initResult`, `permalink`, base utils and callbacks
13+
* @deprecated Directly use `useActionState` hook from `react` instead.
1314
*
1415
* {@link https://next-safe-action.dev/docs/execute-actions/hooks/usestateaction See docs for more information}
1516
*/

0 commit comments

Comments
 (0)