dillon1000/react
Commit
Browse files Use Singleton LifeCycle State
All entry points are for reconciliation are within batching strategies. Since we don't have any batching strategies with synchronous updates, there can't be more than one life-cycle method on the stack at any given time. Therefore, it's safe to move the composite life cycle flag to a singleton. This saves us some memory management. I think that we can get rid of these life cycle states completely in the future.
Changed paths5 files
First-parent comparisonsrc/classic/class/ReactClass.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactLifeCycle.js ModifiedM src/core/ReactUpdateQueue.js ModifiedM src/core/__tests__/ReactComponentLifeCycle-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…