I have read few articles where with React Fiber
and here are some questions.
with previous
stack reconciliation
why is parent-first, depth-first-search impossible? I saw posts sayingReact Fiber
is implemented with linked-list enabling those features. but post also mentions thatstack reconciliation
works "recursively". what is the difference?React Fiber keeps
current
tree andworkInProgress
tree. One of the key features of React Fiber was that it doesn't recreate React Elements and only updates(mutates) changes. does this mean thatcurrent
tree andworkInProgress
tree share(reference) same elements or does it clone?If React Fiber can resume and pause, does this mean that it keeps track of current progress and simply stops when 16ms deadline comes and commits whatever is done? and continue where ever it left off?
Before React Fiber, elements were immutable. Does this mean that if React found a element that has to be modified, all of its children elements were re-created and attached to the newly created element?