Skip to content

Commit

Permalink
Uses .equals for comparing treeprops
Browse files Browse the repository at this point in the history
Summary: Uses .equals for comparing treeprops in the component tree to check resolution can be skipped

Reviewed By: astreet

Differential Revision: D58685875

fbshipit-source-id: da4c5ff7267912d268a8a51cf9aa23f20a92bb22
  • Loading branch information
adityasharat authored and facebook-github-bot committed Jun 17, 2024
1 parent 883b544 commit b0f1068
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
import com.facebook.rendercore.debug.DebugEventAttribute;
import com.facebook.rendercore.debug.DebugEventBus;
import com.facebook.rendercore.debug.DebugEventDispatcher;
import com.facebook.rendercore.utils.EquivalenceUtils;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -1923,7 +1924,8 @@ private void requestRenderWithSplitFutures(
// layout.
if (currentResolveResult != null) {
boolean isSameTreeProps =
currentResolveResult.context.getTreePropContainer() == treePropContainer
EquivalenceUtils.equals(
currentResolveResult.context.getTreePropContainer(), treePropContainer)
|| (ComponentsConfiguration.defaultInstance.enableLifecycleOwnerWrapper
&& treePropContainer == null);

Expand Down

0 comments on commit b0f1068

Please sign in to comment.