react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

Render counts and highlights missing

Open DanielSinclair opened this issue 1 year ago • 4 comments

I integrated react-scan into a webpack bundled Chrome extension using the scan() API, but oddly can't seem to get the render count and highlight-on-rerender to work as expected. The toolbar is visible, and the element selector and highlights are functional and capture the proper elements in the tree.

How should I go about diagnosing the issue?

Screencapture

Dec-03-2024 01-49-19.webm

Integration

import { scan } from 'react-scan';
import * as React from 'react';
/* ... */
if (process.env.IS_DEV === 'true') {
  scan({
    showToolbar: isFullScreen,
    report: true,
    log: true,
  });
}

DanielSinclair avatar Dec 03 '24 07:12 DanielSinclair

Your demo video appears to show that you've got them hidden in the toolbar (the eye icon with the line through).

tbakerx avatar Dec 09 '24 18:12 tbakerx

As @tbakerx mentioned, the eye ball with a cross means it's disabled. You can toggle it to enable it

RobPruzan avatar Dec 11 '24 09:12 RobPruzan

@RobPruzan To be clear, I am seeing this issue with the feature enabled. I was toggling it around for the demo video and must have left it disabled. Here is a better screen recording. Please re-open. Dec-11-2024 15-41-02.webm

DanielSinclair avatar Dec 11 '24 20:12 DanielSinclair

Sorry about that!

RobPruzan avatar Dec 16 '24 19:12 RobPruzan