cloudflare / cloudflare/stream-react
Multiple rerenders before changing the videoId causes unknown error occured message
- Lenguaje dominante
- TypeScript
- Estrellas
- 198
- Forks
- 30
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
We found that on a large application, if react rerenders 3-7 times just after page load and the videoId changes inbetween, the player shows an unknown error message and continues to do so every time you change the videoId after that
this means that there's no way to recover from an error like this without unmounting the component and remounting it which isn't really a good solution
I created a reproducable repo here https://github.com/Floffah/cloudflare-stream-error and deployed it so you can test
Make sure to set your network tab to a slightly slower network throttling setting (e.g. Fast 3G)
Guía de contribución
Línea de trabajo
Comienza con el repositorio reproducible enlazado y ejecuta la aplicación mientras limitas la red a Fast 3G; después, reproduce varios rerenderizados de React con cambios en videoId. Traza cómo el reproductor entra en el estado unknown-error y permanece en él; el trabajo está terminado cuando cambiar videoId permite recuperarse sin desmontar y volver a montar el componente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- frontend
- 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