react icon indicating copy to clipboard operation
react copied to clipboard

[DevTools Bug]: Not seeing source / file path

Open jschuler opened this issue 2 years ago • 3 comments

Website or app

Any

Repro steps

Open react dev tools in browser Select a react component from the tree Notice that no Source (file path) is printed in the bottom right panel (see description screenshot in https://github.com/facebook/react/pull/17567)

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

jschuler avatar Oct 25 '22 19:10 jschuler

@jschuler: We're sorry you've seen this error. ❤️

It looks like you forgot to specify a valid URL. (This means that we will not be able to reproduce the problem you're reporting.)

Please help us by providing a link to a CodeSandbox (https://codesandbox.io/s/new), a repository on GitHub, or a minimal code example that reproduces the problem. (Screenshots or videos can also be helpful if they help provide context on how to repro the bug.)

Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

Issues without repros are automatically closed but we will re-open if you update with repro info.

github-actions[bot] avatar Oct 25 '22 19:10 github-actions[bot]

Thank you for providing repro steps! Re-opening issue now for triage.

github-actions[bot] avatar Oct 25 '22 19:10 github-actions[bot]

Hei @jschuler ,maybe i'm missing something but react dev tool won't be able to render source file for a prod build because of how bundling works? It does do that for dev builds tho as far as i can see, if that's what you meant?

DantrazTrev avatar Oct 26 '22 18:10 DantrazTrev

a good solution to splitting UI and business logic, see: https://github.com/hawx1993/hooks-view-model

hawx1993 avatar Oct 30 '22 14:10 hawx1993