How to invalidate route from the __root.tsx?
Hello, I have PWA background-sync mechanism in my app and I sent a message with some data from service-worker to the app. I'd like to handle these messages in one listener, in __root.tsx. When I go to
/about
page and there's no internet connection, I render ErrorComponent
but I'd like to reload this page once I'm online again (so it's when I get message from sw)
That's what I tried:
But this code doesn't work.
Any ideas how could I achieve what I want?
Thanks! ✌️0 Replies