chingu-x / chingu-dashboard

https://chingu-dashboard.vercel.app
GNU General Public License v3.0
9 stars 2 forks source link

Refactor/auth architecture pt3 #278

Closed Dan-Y-Ko closed 1 week ago

Dan-Y-Ko commented 2 weeks ago

Description

This pr takes care of installing and setting up tanstack query. I connected the login and logout functions with the useMutation hook. The behavior should be the same as before except there will be a spinner in the login button after logging in. I also connected the error callback function too (I think I'm gunna refactor the error handling later though), so you can test that as well.

Issue link

Fixes # (issue)

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chingu-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 3:14pm