eternagame / eternagame.org

Website for the Eterna citizen science game
https://eternagame.org
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

NotificationIcon request duplicity #192

Closed luxaritas closed 1 year ago

luxaritas commented 4 years ago

Currently there are three places where NotificationIcon is created, and they're all always instantiated, which means there's duplicity in their checks for notification updates. Notably, this applies to the mobile vs desktop nav. We should look into a way to either prevent multiple instances from getting mounted (though I don't think we can do that since we're showing/hiding via css media queries), or work with FetchMixin to have some sort of "this is a request that applies across multiple component instances, use this magic ID instead of your autogenerated magic", or tie into VueX, or something.