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
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
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:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules
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: