Skip to content

Commit b0c0514

Browse files
authored
Update hook references in documentation
1 parent aafd0f8 commit b0c0514

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • adminforth/documentation/docs/tutorial/03-Customization

adminforth/documentation/docs/tutorial/03-Customization/04-hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ When user clicks the "Save" button on edit page, AdminForth makes a request to t
5252

5353
![Saving data on edit page](image-27.png)
5454

55-
Practically you can use `edit.beforeSave` hook to modify the data or populate new fields before it is saved to the database.
55+
Practically you can use `hooks.edit.beforeSave` hook to modify the data or populate new fields before it is saved to the database.
5656

57-
> 👆 Note: according to diagram you should understand that interrupting flow from `edit.afterSave` does not prevent data modification in DB
57+
> 👆 Note: according to diagram you should understand that interrupting flow from `hooks.edit.afterSave` does not prevent data modification in DB
5858
5959
## Saving data on create page
6060

@@ -266,4 +266,4 @@ always performed before any hooks and any database requests.
266266

267267
## All hooks
268268

269-
Check all hooks in the [API reference](/docs/api/Back/interfaces/AdminForthResource).
269+
Check all hooks in the [API reference](/docs/api/Back/interfaces/AdminForthResource).

0 commit comments

Comments
 (0)