-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect with jsx #14
Comments
I don’t see how this library has anything to do with react navigation or conditional rendering. |
Thanks for this awesome tool! I'm facing the same issue @c0nsoleg tho: there is no way to react to when the user gets logged in or logged out in order to do something like:
You can answer with "this library is just for setting the axios headers interceptors" and you would be 100% right, but at the same time it would be nice to have the possibility to respond accordingly. Thanks! |
Hi @ericlifs, have you tried using the |
Hey @mvanroon, how are you? Yes, I've tried using that Also, there is a "bug" in the readme file: this is the code for the
If you do in your code:
It will always show 'logged in' because the Eric. |
You’re right! Looks like the readme needs to be updated. Could you open a PR? As for ‘caching’ the auth state. You could build this in your own project or we could create a hook that returns the logged in state. This state would need to be updated when a user logs in or out. Wanna take a stab at it? I’m available for reviewing pull requests. |
Any success in using it with libraries like react-navigation and make use of isLoggedIn to conditional render something?
The text was updated successfully, but these errors were encountered: