LakshmiSowmya04 / GradLink

Reconnect. Rediscover. Rebuild.
11 stars 23 forks source link

Create Custom Hooks with React Query for Handling Authentication Requests #14

Open AdityaGhamat opened 1 month ago

AdityaGhamat commented 1 month ago

We need to create custom hooks using React Query for handling authentication-related requests in our application. This includes useSignup for user registration, useLogin for user login, and useOtpVerification for verifying OTPs. Each hook should manage loading and error states, promoting code reusability and cleaner components. Pros - 1.Minimum use of useEffect, so performance can be improved so much. 2.Less code and modular code

AdityaGhamat commented 1 month ago

@LakshmiSowmya04 Its really essential issue and i wish to solve it.

LakshmiSowmya04 commented 1 month ago

@AdityaGhamat if there are no other tasks in queue for you please proceed for this

AdityaGhamat commented 1 month ago

@LakshmiSowmya04 can you tag it in hacktoberfest?

nikkuv commented 1 month ago

@AdityaGhamat I wish to work to on this, please assign it to me.

AdityaGhamat commented 1 month ago

@nikkuv sure.will be able to create custom hooks for request coming from server?

nikkuv commented 1 month ago

@AdityaGhamat, yes, the hook will support requests coming from the server. I'm done with the task but wasn't able to push to the same repo. Will you make me a contributor in this repo, or do I have to fork the repo to push my changes?

LakshmiSowmya04 commented 1 month ago

@AdityaGhamat, yes, the hook will support requests coming from the server. I'm done with the task but wasn't able to push to the same repo. Will you make me a contributor in this repo, or do I have to fork the repo to push my changes?

U have to fork nd then raise pr