[Bug]: State bug breaking search and eventually freezing up
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 11.8k
- Forks
- 7.9k
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 11
Descripción
Summary
I’m on chrome on my iPhone and search works sometimes, but then on certain URLs, like the one linked on this issue, tapping to search just makes the button appear to be held down with no other effect. Trying repeatedly can freeze up the tab.
Page
https://react.dev/reference/react/Component#static-getderivedstatefromerror
Details
If it’s failing to pull up the search UI, and I go and click a link to go somewhere else in the docs, it suddenly does open up search instead of navigating there. If I close it without actually searching, it does continue navigation to the link I tapped. Depending on the new url I’m on, it may then work normally, or this same behavior again. It appears as if it may be happening when the current url is pointing to a named anchor. It’s only happening to me on mobile - it works fine on desktop trying the exact same thing, on the same urls.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el problema en Chrome en un iPhone usando la página de documentación de React enlazada y URL con anclajes con nombre. Sigue el comportamiento de la búsqueda móvil y la navegación mediante enlaces alrededor de esos anclajes; se considera terminado cuando la búsqueda se abre de forma fiable, los enlaces navegan con normalidad y los intentos repetidos ya no congelan la pestaña.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react
- Área
- documentation, frontend, web-dev
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100