[docs] Auto reload interrupting flow
Open
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:
- Navigate to https://mui.com/
- Click on the search field at the top
- Start typing
- Browser reloads window clearing search
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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