aidenybai / aidenybai/react-scan

nexjs 15 (app) react scan debug window not showing up

Đang mở
#381 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
21.8k
Fork
390
Merge trung bình
23 phút
Pull request đã merge (30 ngày)
1

Mô tả

Hello react-scan not working as expected using nextJS 15 (app),

### Versions
"next": "15.3.0",
"react-scan": "^0.3.4",

## how I setup it :
```
"use client";

import { scan } from "react-scan";
import { JSX, useEffect } from "react";

export function ReactScan(): JSX.Element {
useEffect(() => {
scan({
enabled: true,
trackUnnecessaryRenders: true,
});
}, []);

return <>;
}
```

In root layout :

![Image](https://github.com/user-attachments/assets/726dd014-1046-4b9f-9f5d-ea3289b3b6f9)

when I click on one of my component using react-scan nothing happens, I should see the debug window for the clicked component like there :

https://github.com/user-attachments/assets/f0fdcadc-efd3-4606-89d8-fe257e8597ee

here my case :

https://github.com/user-attachments/assets/dccf64fd-2797-45be-a7a5-1733337f0bc0

thanks for this awesome tool

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.