-
I try to handle registering with react query but I am stack with type error, I have no clue what is wrong, calling registerUser gives type error in below code // useRegister.ts // Function to handle registration if (!response.ok) { return response.json(); // Ensure this matches RegisterResponse // Custom hook for registration and those are my types export interface RegisterResponse { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
- return useMutation<RegisterResponse, Error, RegisterFormInputs>(
+ return useMutation( see: |
Beta Was this translation helpful? Give feedback.
see: