oblosys / react-lifecycle-visualizer Goto Github PK
View Code? Open in Web Editor NEWReal-time visualizer for React lifecycle methods
License: MIT License
Real-time visualizer for React lifecycle methods
License: MIT License
I couldn't get this working. When I wrap a component in the traceLifecycle
HOC I just get the above error because _this.context
is undefined.
I am getting this error when adding traceLifecycle to a component in this repro:
https://github.com/hally9k/react-render-cascade
I am trying to repro some cascading render issues.
Stacktrace:
Error: Class constructor Iterative cannot be invoked without 'new'
at new TracingComponent (http://localhost:9090/app.js:21884:124)
at constructClassInstance (http://localhost:9090/app.js:10974:20)
at updateClassComponent (http://localhost:9090/app.js:12509:9)
at beginWork (http://localhost:9090/app.js:13155:16)
at performUnitOfWork (http://localhost:9090/app.js:15987:16)
at workLoop (http://localhost:9090/app.js:16016:26)
at HTMLUnknownElement.callCallback (http://localhost:9090/app.js:4273:14)
at Object.invokeGuardedCallbackDev (http://localhost:9090/app.js:4311:16)
at invokeGuardedCallback (http://localhost:9090/app.js:4360:29)
at replayUnitOfWork (http://localhost:9090/app.js:15491:7)
In tutorial there is:
const ComponentToTrace = traceLifeCycle(class ComponentToTrace extends React.Component {...});
But the function is traceLifecycle (with a small C).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.