mui / mui/material-ui

[docs] Auto reload interrupting flow

Open
#46,439 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs scope: all components type: bug
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The suspected logic is in docs/pages/_app.js around line 50. Reproduce the issue by opening mui.com, using the search field, and checking behavior after a newer deployment; then trace the service-worker reload path. Done means typing in the search field is not interrupted by an automatic browser reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.