Skip to content

Commit

Permalink
chore: add deprecated jsdoc to legacy swr useMutation function
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Dec 1, 2023
1 parent f2ab6a5 commit 8a10d35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugins/swr/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function generateModelHooks(
'const { endpoint, fetch } = useHooksContext();',
`const invalidate = request.useInvalidation('${model.name}', metadata);`,
],
docs: ['@deprecated Use mutation hooks (useCreateXXX, useUpdateXXX, etc.) instead.'],
})
: undefined;

Expand Down

0 comments on commit 8a10d35

Please sign in to comment.