diff --git a/packages/next-safe-action/src/action-builder.ts b/packages/next-safe-action/src/action-builder.ts index 69dd5dd..422656a 100644 --- a/packages/next-safe-action/src/action-builder.ts +++ b/packages/next-safe-action/src/action-builder.ts @@ -254,7 +254,7 @@ export function actionBuilder< action: buildAction({ withState: false }).action, /** - * Define the stateful action. To be used with the [`useStateAction`](https://next-safe-action.dev/docs/usage/hooks/usestateaction) hook. + * Define the stateful action. To be used with the [`useStateAction`](https://next-safe-action.dev/docs/execution/hooks/usestateaction) hook. * @param serverCodeFn Code that will be executed on the **server side** * * {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#action--stateaction See docs for more information} diff --git a/packages/next-safe-action/src/hooks.ts b/packages/next-safe-action/src/hooks.ts index 128d927..152afe6 100644 --- a/packages/next-safe-action/src/hooks.ts +++ b/packages/next-safe-action/src/hooks.ts @@ -11,7 +11,7 @@ import type { HookCallbacks, HookResult, HookSafeActionFn, - HookStateSafeActionFn, + HookSafeStateActionFn, } from "./hooks.types"; import { EMPTY_HOOK_RESULT, isError } from "./utils"; @@ -104,7 +104,7 @@ const useActionCallbacks = < * @param safeActionFn The action function * @param utils Optional callbacks * - * {@link https://next-safe-action.dev/docs/usage/hooks/useaction See docs for more information} + * {@link https://next-safe-action.dev/docs/execution/hooks/useaction See docs for more information} */ export const useAction = < ServerError, @@ -174,7 +174,7 @@ export const useAction = < * @param safeActionFn The action function * @param utils Required `currentData` and `updateFn` and optional callbacks * - * {@link https://next-safe-action.dev/docs/usage/hooks/useoptimisticaction See docs for more information} + * {@link https://next-safe-action.dev/docs/execution/hooks/useoptimisticaction See docs for more information} */ export const useOptimisticAction = < ServerError, @@ -259,7 +259,7 @@ export const useOptimisticAction = < * @param safeActionFn The action function * @param utils Optional `initResult`, `permalink` and callbacks * - * {@link https://next-safe-action.dev/docs/usage/hooks/usestateaction See docs for more information} + * {@link https://next-safe-action.dev/docs/execution/hooks/usestateaction See docs for more information} */ export const useStateAction = < ServerError, @@ -269,7 +269,7 @@ export const useStateAction = < FBAVE, Data, >( - safeActionFn: HookStateSafeActionFn, + safeActionFn: HookSafeStateActionFn, utils?: { initResult?: Awaited>; permalink?: string; diff --git a/packages/next-safe-action/src/safe-action-client.ts b/packages/next-safe-action/src/safe-action-client.ts index 7b65858..4154774 100644 --- a/packages/next-safe-action/src/safe-action-client.ts +++ b/packages/next-safe-action/src/safe-action-client.ts @@ -156,7 +156,7 @@ class SafeActionClient { /** * Define the stateful action (without input validation schema, bind arguments validation schemas or metadata). - * To be used with the [`useStateAction`](https://next-safe-action.dev/docs/usage/hooks/usestateaction) hook. + * To be used with the [`useStateAction`](https://next-safe-action.dev/docs/execution/hooks/usestateaction) hook. * @param serverCodeFn Code that will be executed on the **server side** * * {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#action--stateaction See docs for more information}