You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a new version is available notification keeps showing up #211
Edit: I got it to happen once with setting the if blocks to true but now I need to figure out how to clear the worker lmao
Edit2: figured out the service worker stuff, back to recreating and fixing the bug 😅
Edit3: So with the serviceWorker conditionals set to true I am able to render the Toast but I am oddly getting 3
I would expect installingWorker.state === 'installed' to handle that. Did you find any useful difference between the events, that we can use to detect the right one?
If not, we can always set and check a file scope notified flag.
That handled it but there was an additional condition checking the ServiceWorker controller that was null for the first 2 state changes and never seemed to render the toast unless I removed it. Currently, I am trying to see if I can find onstatechange( behavior for installed that will also do it but not have the other renders will null states
Activity
JacobMGEvans commentedon Jun 24, 2020
Oh, interesting! I wonder if I can recreate that.
Edit: I got it to happen once with setting the if blocks to true but now I need to figure out how to clear the worker lmao

Edit2: figured out the service worker stuff, back to recreating and fixing the bug 😅
Edit3: So with the serviceWorker conditionals set to true I am able to render the Toast but I am oddly getting 3
JacobMGEvans commentedon Jun 28, 2020
It seems like the service worker Registration

onstatechange()is being called multiple times which is where the toast component lives.smeijer commentedon Jun 28, 2020
Thanks for the research 👍
I would expect
installingWorker.state === 'installed'to handle that. Did you find any useful difference between the events, that we can use to detect the right one?If not, we can always set and check a file scope
notifiedflag.JacobMGEvans commentedon Jun 28, 2020
That handled it but there was an additional condition checking the ServiceWorker controller that was null for the first 2 state changes and never seemed to render the toast unless I removed it. Currently, I am trying to see if I can find
onstatechange(behavior for installed that will also do it but not have the other renders willnullstatessmeijer commentedon Jul 8, 2020
@JacobMGEvans, were you able to find a solution for this issue? I consider disabling the notification entirely. Because it's really bugging me.
ljosberinn commentedon Jul 24, 2020
Reminder for myself to check this out tomorrow 😅