The allFiles useMemo was declared after two early-return branches. Approving the last phase empties pendingReviewPhases, triggering the early return and causing React to see fewer hooks than the previous render.
The allFiles useMemo was declared after two early-return branches. Approving the last phase empties pendingReviewPhases, triggering the early return and causing React to see fewer hooks than the previous render.