Skip to content

After every new release of our webiste, this library throws an error on the first navigation #19

@korsvanloon

Description

@korsvanloon

The use case is the following:

  1. A user has our website open
  2. We do a new release
  3. The user navigates
  4. It receives an error: "Make sure to use ProgressBarProvider before using the progress bar."
  5. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions