Skip to content

Commit

Permalink
Added a TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Aug 30, 2019
1 parent a6aef4f commit b8e1f81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1481,9 +1481,7 @@ export function attach(

// Returns whether closest unfiltered fiber parent needs to reset its child list.
//
// TRICKY
// Although this method is recursive, refactoring it to be iterative would add a lot of complexity.
// Since it is not expected to operate on huge parts of the tree at once, it's probably okay?
// TODO Refactor this method to be iterative as well
function updateFiberRecursively(
nextFiber: Fiber,
prevFiber: Fiber,
Expand Down

0 comments on commit b8e1f81

Please sign in to comment.