code-forge-io / code-forge-io/react-router-devtools

Severe memory leak in Linux

Abierto
#212 7 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
972
Forks
55
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

We recently adopted `react-router-devtools` in my team.

`vite.config.ts`
```typescript
export default defineConfig({
plugins: [
process.env.NODE_ENV === "development" ? reactRouterDevTools() : undefined,
tsconfigPaths({ root: "./", projects: ["tsconfig.json"] }),
tailwindcss(),
reactRouter()
],
optimizeDeps: {
exclude: ["google-auth-library", "gcp-metadata"],
},
})
```

In development mode, **only in Linux**, browsing through my application leads to a rapid increase in memory use

Image

Image

in both **Chrome** and **Firefox**. Running the application without `react-router-devtools` leads to no issue, and using `react-router-devtools` in **MacOS** also leads to no issue.

After minutes of not interacting with the page at all, it crashes.

Image

# System

Fedora Linux 42 (Workstation Edition)

# Packages
- react-router-devtools 5.0.6

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start with the vite.config.ts configuration and reproduce the memory growth on Fedora Linux 42 using react-router-devtools 5.0.6, comparing development runs with the devtools enabled and disabled. Use the reported Chrome or Firefox behavior to identify the leak; done means browsing no longer causes continued memory growth or a crash on Linux.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
linux, react, typescript, vite
Área
devtools, operating-systems, performance, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.