Skip to content

[docs] Auto reload interrupting flow #46439

@howlettt

Description

@howlettt

Steps to reproduce

Steps:

  1. Navigate to https://mui.com/
  2. Click on the search field at the top
  3. Start typing
  4. Browser reloads window clearing search
  5. Note I believe it only happens when a new version has been deployed since your last visit to the docs site

Current behavior

Browser reloads window clearing search. I suspect it's caused by the service worker logic https://github.com/mui/material-ui/blob/2d5a0bc597fb9d954504221f21f521042be969fe/docs/pages/_app.js#L50C7-L50C32

Expected behavior

Can complete search without interruption

Context

No response

Your environment

Search keywords: docs refresh reload

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something doesn't workdocsImprovements or additions to the documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions