LADIES AND GENTS THE NOTIFICATION ICON CHANGES TO INDICATE YOU HAVE NOTIFICATIONS
I’ ll describe this session cuz it was so funny frfr:
So like I got started wondering why the notification button in navbar doesnt update
I then proceeded to delete the svg s I had and replace them with pc generated ones
Then I proceeded to change the structure of both my app.py and navbar.jsx (visible in my commits)
But I suddenly remembered I can debug with console logs which I have kept cuz y not
To cut it short after debugging I saw in the console log a messoge that said and I quote index-D9jqm-wX.js:11 Navbar hasUnreadNotifications: undefined undefined and that was when I realised I had nowhere in the .jsx included the hasUnreadNotification boolean so there was no way of the client knowing what I was yapping abt in Navbar.jsx basically I was saying check if hasUnreadNotification is True
I then used the find thingy of VSCode to add the argument to all the react pages
Up Next:
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.