Skip to content

Commit

Permalink
Merge pull request #8769 from afilp/patch-40
Browse files Browse the repository at this point in the history
[Doc] Fix hook naming (use 'beforeSave')
  • Loading branch information
fzaninotto authored Mar 26, 2023
2 parents 171c491 + 8612814 commit 84f7d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/withLifecycleCallbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const dataProvider = withLifecycleCallbacks(
},
{
resource: "comments",
beforeRead: async (data, dataProvider) => { /* ... */ },
beforeSave: async (data, dataProvider) => { /* ... */ },
afterCreate: async (result, dataProvider) => { /* ... */ },
},
{
Expand Down

0 comments on commit 84f7d2b

Please sign in to comment.