react-check-auth
react-check-auth copied to clipboard
TBD Set default value of `loading` to true
TBD
Initial value of isLoading is false and userInfo is null, what is obviously inconsistent. That values are passed to Consumer's children and can lead to wrong behavior, as described in https://github.com/hasura/react-check-auth/issues/17, for example.
I suggest to set initial isLoading value to true, so components can rely on both isLoading and userInfo, especially right after rendering.
We ran into this issue straight away also, is the repo stale and requiring personal forks? @karthikvt26 are you able to merge and cut a release of the two main feature PRs?
Thanks @ichi404gh for the PR. Have been super busy with some work. Will definitely check it out in some time.
@stevokk Will definitely check it out and release them asap.
@karthikvt26 we're starting a new project and pulling the local fix version over, can we get these merged or are you requiring some legwork on our end to help?