Lagging before Firestore fetching Collection
I’m trying to fetch roles and render some elements of the pages based on the roles of the user who logged in, but it works once; just after the webpack is compiled. Whenever I reload or log out login. The element should be rendered disappeared. I tried to set a 500ms delay before fetching roles, but you know it’s clunky. Can anyone help me with this?
I want to use Firestore for rating update for book app
This is my firebasconfig.ts