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

Severe memory leak in Linux

Open
#212 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
972
Forks
55
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.