aidenybai / aidenybai/react-scan

react-scan fails to load

未关闭
#445 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
21.8k
派生
390
平均合并
23 分钟
30 天内合并 PR
1

描述

react-scan fails to load on what I assume is a poor internet connection issue. Sometimes appear, sometimes it doesn't. I guess it is because it relies on internet connection and CDNs, in the script tag.

Can we make it more like `Tanstack devtools`? Tanstack devtools always pop up.

```tsx
export function Devtools() {
return (
,
},
formDevtoolsPlugin(),
]}
/>
);
}
```

Then I use it in root `layout.tsx` like this:

```tsx
export default function RootLayout(props: RootLayoutProps) {
return (



{props.children}
{process.env.NODE_ENV !== "production" && }


);
}
```

Tanstack never fails to load. react-scan does, and very often.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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