Skip to content

Commit

Permalink
RU needsUpdate -> shouldUpdate
Browse files Browse the repository at this point in the history
Summary: per comments on D61265667

Differential Revision: D61383856

fbshipit-source-id: 78c10c601f06973b21992b801bfd54698d7086d7
  • Loading branch information
Daniel Famakin authored and facebook-github-bot committed Aug 16, 2024
1 parent 1836c13 commit 668efcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ constructor(
currentMountItem.update(renderTreeNode)
currentRenderUnit.onStartUpdateRenderUnit()
mountDelegate?.startNotifyVisibleBoundsChangedSection()
if (currentRenderUnit.needsUpdate(renderUnit) ||
if (currentRenderUnit.shouldUpdate(renderUnit) ||
!isEqualOrEquivalentTo(currentLayoutData, newLayoutData)) {
val traceIdentifier =
DebugEventDispatcher.generateTraceIdentifier(DebugEvent.RenderUnitUpdated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ constructor(
}
}

open fun needsUpdate(newRenderUnit: RenderUnit<MOUNT_CONTENT>): Boolean = this !== newRenderUnit
open fun shouldUpdate(newRenderUnit: RenderUnit<MOUNT_CONTENT>): Boolean = this !== newRenderUnit

open fun <T : Binder<*, *, *>?> findAttachBinderByClass(klass: Class<T>): T? {
return attachBinderTypeToDelegateMap?.get(klass)?.binder as T?
Expand Down

0 comments on commit 668efcc

Please sign in to comment.