You are browsing as a guest. Sign up (or log in) to start making projects!

1h 10m 41s logged

IT TOOK ME 1 HOUR BUT IT WAS WORH IT:

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:
  • Have it tested by people give feedback.
  • Activate global acces via Clouflare
  • Automate deletion of old events with cron
0
63

Comments 0

No comments yet. Be the first!