`a new version is available` notification keeps showing up
Bug Report 🐛
The 'refresh for update' indicator is a bit buggy

To Reproduce ✔️
- No idea, maybe it's only the netlify preview build?
Expected behavior 🤔
The refresh indicator should only appear once, and be gone when I click "refresh".
Suggested solution 🔦
Your Environment 💻
- browser: Chrome
- os: Linux
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

It seems like the service worker Registration onstatechange() is being called multiple times which is where the toast component lives.

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 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
@JacobMGEvans, were you able to find a solution for this issue? I consider disabling the notification entirely. Because it's really bugging me.
Reminder for myself to check this out tomorrow 😅