dillon1000/react
Commit
Browse files Break out some Class Component logic into separate module
Refactors the class logic a bit. I moved scheduleUpdate out into the scheduler since that's where the scheduling normally happens. I also moved it so that we can rely on hoisting to resolve the cycle statically. I moved the updater to a new class component file. I suspect we will need a bit of space in here since the class initialization code is quite complex. The class component dependency is currently fixed in BeginWork so we can't move complete or commit phase stuff to it. If we need to, we have to initialize it in the scheduler and pass it to the other phases.
Changed paths4 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiberBeginWork.js ModifiedA src/renderers/shared/fiber/ReactFiberClassComponent.js AddedM src/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/fiber/ReactFiberUpdateQueue.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…