Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): set useSession loading state correctly (#1468)
This is fixing #1467. The issue was due to doing the `setLoading(false)` in the finally: as we can do an early return [here](https://github.com/nextauthjs/next-auth/blob/a7e08e2a3266efa9c82eb859e7141c798fcf07ae/src/client/index.js#L100-L100), we would still go to the finally and mark the session as being loaded. I simply removed the `finally` block to only set the `loading` state to false when: - the data is ready - an error occures
- Loading branch information
e553573
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: