Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I had originally built an
if statement
inApp.jsx
. It checked on the loading state which was being set inuseShoppingListData
. If the loading state was true, the app would render a spinner component to let the user know something was happening. This was however dependent on data. When data was not already saved in the browser (as in during development) this caused a permanent loading state. The deployed app, or any new browser were constantly loading because there was no data to trigger the loading state to change.This was the first thing App.jsx did so it could not access the the Login/ Sign Up logic to fetch the data.if statement
was removed fromApp.jsx
<Spinner/>
we added to the SignInButton and SignOutButton logic in useAuth.jsx.Related Issue
closes #46
Acceptance Criteria
None
Type of Changes
bug fix
Updates
Before
This is the deployed App
issue-20.BUG-FIX.mov
This is the dev environment in an new browser window
https://github.com/the-collab-lab/tcl-66-smart-shopping-list/assets/108297341/8171c9c0-1c82-4af8-91fd-4f9dbabf87f9
After
This is the dev environment in an new browser window
r window
Testing Steps / QA Criteria