From 8a10d35971ff6f6a1cfc299831c6966569520412 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Thu, 30 Nov 2023 17:23:50 -0800 Subject: [PATCH] chore: add deprecated jsdoc to legacy swr useMutation function --- packages/plugins/swr/src/generator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/swr/src/generator.ts b/packages/plugins/swr/src/generator.ts index bdea20e83..6c4e6ce5b 100644 --- a/packages/plugins/swr/src/generator.ts +++ b/packages/plugins/swr/src/generator.ts @@ -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;