code-forge-io / code-forge-io/react-router-devtools
Severe memory leak in Linux
- 主要語言
- TypeScript
- 星號
- 972
- 分支
- 55
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
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.
# System
Fedora Linux 42 (Workstation Edition)
# Packages
- react-router-devtools 5.0.6
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
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.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- linux, react, typescript, vite
- 領域
- devtools, operating-systems, performance, tooling
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100