-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React DevTools Show Source
is not working
#196
Comments
@jaredly, is there any way I can tell React DevTools to look at a different function? Right now it points to the proxied method, but I can set something like |
Yeah, that sounds reasonable. Here's the code for jumping to a function's source (it uses the chrome console api fn I imagine the constructor doesn't get proxied, right? So the only change would be for the render function? |
@jaredly The constructor is proxied too. Never mind React Hot Loader though—it's deprecated and the new proxying mechanism is in React Proxy. I'm proxying both constructor and all prototype methods there. |
I can’t repro this with React Hot Loader 3 so it somehow got fixed. |
I'm having this issue on |
Yeah, lets reopen this. |
Fixed in 4.5.0 (beta) - https://github.com/gaearon/react-hot-loader#setconfigconfig |
@theKashey Thanks! And:
And the babel transformer plugin:
|
@Bnaya - you need |
I tried to understand what that means, and how it will effect me and i didn't manage to understand :( |
@Bnaya - https://github.com/gaearon/react-hot-loader#-hot-labs- import { setConfig } from 'react-hot-loader'
setConfig({
pureRender: true, // RHL will not change render method
}) |
i read the docs, but i just don't know what that means |
The problem with DevTools was in shadowing |
yes, but why its not on by default? |
It was an experimental option. There are a few tests, which goes red with this option enabled. |
I tried to view source of component in React Panel
But it ended up with somewhere in
makeAssimilatePrototype.js
The text was updated successfully, but these errors were encountered: