aidenybai / aidenybai/react-scan

react-scan fails to load

Offen
#445 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
21.8k
Forks
390
Ø Merge
23 Min.
Gemergte PRs (30 T.)
1

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.