From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Conditional rendering and protected route

Conditional rendering and protected route

- Now you want to navigate to My Stock Images and be able to see your own stock images. So I'm using for this demo, the same main and primary account for this demo. So we're going to go back to the source code and do a quick change because something you should also notice, is that, right here. So remember that, every time that you were uploading a new image to the database, to the storage and then to the database, you are also specifying to LowerCase. So we must do the same. So when we want to find the right match, so to compare the user with the current user, who is connected, we must also specify to LowerCase, and that should work perfectly. So now we are in the homepage. And now let's navigate to My Stock Images. And now you can see that we can display correctly, the stock images of the current user. So let's try to make another test, from. So right now the looks like we have like an issue. And that is because, once…

Contents