The use case is the following:
- A user has our website open
- We do a new release
- The user navigates
- It receives an error: "Make sure to use
ProgressBarProvider before using the progress bar."
- After a refresh, everything works fine.
From my understanding this happens because the provider is in a layout.tsx which stays in the old version, whereas the new page.tsx is retrieved from the new bundle. Therefore the providers don't match and it will throw this error.
What should we do?
Should our setup be different?
Or maybe this package can just log an error instead of throwing it?