Open palavrov opened 7 years ago
Any update on this one? It's almost impossible to debug stateless components using react-proxy as it is today.
Oh my! This is the module that has me pulling my hair out!!
I'm happy to write a PR for this issue. I can think of the following fixes, which do you prefer @gaearon:
Function.prototype.toString()
. Like is-class
does: https://github.com/miguelmota/is-class/blob/master/is-class.js1 might be slower but more standardized (with a leaky special case for babel).
2 is simpler and perhaps good enough for this edge case, but UA error messages do sometimes change. This would also have false negatives if the component constructor calls an ES6 class without new.
Please fix this, its been driving me crazy and the issue is growing some serious beard now. There's been a suggestion on how to fix in the linked issue.
That one is really annoying. See gaearon/react-hot-loader#488