Skip to content

Commit 4ea8559

Browse files
committedMay 7, 2024
docs: update website links in JSDocs
1 parent 87b13b4 commit 4ea8559

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎packages/next-safe-action/src/action-builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export function actionBuilder<
254254
action: buildAction({ withState: false }).action,
255255

256256
/**
257-
* Define the stateful action. To be used with the [`useStateAction`](https://next-safe-action.dev/docs/usage/hooks/usestateaction) hook.
257+
* Define the stateful action. To be used with the [`useStateAction`](https://next-safe-action.dev/docs/execution/hooks/usestateaction) hook.
258258
* @param serverCodeFn Code that will be executed on the **server side**
259259
*
260260
* {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#action--stateaction See docs for more information}

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
HookCallbacks,
1212
HookResult,
1313
HookSafeActionFn,
14-
HookStateSafeActionFn,
14+
HookSafeStateActionFn,
1515
} from "./hooks.types";
1616
import { EMPTY_HOOK_RESULT, isError } from "./utils";
1717

@@ -104,7 +104,7 @@ const useActionCallbacks = <
104104
* @param safeActionFn The action function
105105
* @param utils Optional callbacks
106106
*
107-
* {@link https://next-safe-action.dev/docs/usage/hooks/useaction See docs for more information}
107+
* {@link https://next-safe-action.dev/docs/execution/hooks/useaction See docs for more information}
108108
*/
109109
export const useAction = <
110110
ServerError,
@@ -174,7 +174,7 @@ export const useAction = <
174174
* @param safeActionFn The action function
175175
* @param utils Required `currentData` and `updateFn` and optional callbacks
176176
*
177-
* {@link https://next-safe-action.dev/docs/usage/hooks/useoptimisticaction See docs for more information}
177+
* {@link https://next-safe-action.dev/docs/execution/hooks/useoptimisticaction See docs for more information}
178178
*/
179179
export const useOptimisticAction = <
180180
ServerError,
@@ -259,7 +259,7 @@ export const useOptimisticAction = <
259259
* @param safeActionFn The action function
260260
* @param utils Optional `initResult`, `permalink` and callbacks
261261
*
262-
* {@link https://next-safe-action.dev/docs/usage/hooks/usestateaction See docs for more information}
262+
* {@link https://next-safe-action.dev/docs/execution/hooks/usestateaction See docs for more information}
263263
*/
264264
export const useStateAction = <
265265
ServerError,
@@ -269,7 +269,7 @@ export const useStateAction = <
269269
FBAVE,
270270
Data,
271271
>(
272-
safeActionFn: HookStateSafeActionFn<ServerError, S, BAS, FVE, FBAVE, Data>,
272+
safeActionFn: HookSafeStateActionFn<ServerError, S, BAS, FVE, FBAVE, Data>,
273273
utils?: {
274274
initResult?: Awaited<ReturnType<typeof safeActionFn>>;
275275
permalink?: string;

‎packages/next-safe-action/src/safe-action-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class SafeActionClient<ServerError, Ctx = undefined, Metadata = undefined> {
156156

157157
/**
158158
* Define the stateful action (without input validation schema, bind arguments validation schemas or metadata).
159-
* To be used with the [`useStateAction`](https://next-safe-action.dev/docs/usage/hooks/usestateaction) hook.
159+
* To be used with the [`useStateAction`](https://next-safe-action.dev/docs/execution/hooks/usestateaction) hook.
160160
* @param serverCodeFn Code that will be executed on the **server side**
161161
*
162162
* {@link https://next-safe-action.dev/docs/safe-action-client/instance-methods#action--stateaction See docs for more information}

0 commit comments

Comments
 (0)
Please sign in to comment.