I have read few articles where with React Fiber and here are some questions.
with previous
stack reconciliationwhy is parent-first, depth-first-search impossible? I saw posts sayingReact Fiberis implemented with linked-list enabling those features. but post also mentions thatstack reconciliationworks "recursively". what is the difference?React Fiber keeps
currenttree andworkInProgresstree. One of the key features of React Fiber was that it doesn't recreate React Elements and only updates(mutates) changes. does this mean thatcurrenttree andworkInProgresstree 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?