DEV Community

Discussion on: Using Firebase with React Hooks

 
nikomontana profile image
Niko Montana

I must admit, my solution is pure nonsence. By implementing my logic I have to wait for every page to initialize firebase until I can access the user and in reality this is even worse UX.

So maybe a good conclusion:

Thanks for your post, you did a great job bud!

Thread Thread
 
bmcmahen profile image
Ben McMahen

Ah, bummer. Too bad. I do think there are strategies to improving this, though. Maybe a topic for another blog post...

Thread Thread
 
bulletninja profile image
Bulletninja

Maybe you can put that into a context, and try to get things from localStorage or sessionStorage, if they're not there, initialize, and reuse such context in all your pages