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

Severe memory leak in Linux

未关闭
#212 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。