Add state update attribution
Summary: Show the section which triggered the state update in the tree hierarchy. We can't use the attribution param that was being passed from SectionTree because it contains the key of the section, not the global key. Reviewed By: pasqualeanatriello Differential Revision: D17161730 fbshipit-source-id: bae5e509c378ffdf210acac6564212c873c5855b
This commit is contained in:
committed by
Facebook Github Bot
parent
9624c803a1
commit
e05a3bdeca
@@ -12,6 +12,7 @@ import com.facebook.flipper.core.FlipperObject;
|
||||
import com.facebook.litho.sections.Change;
|
||||
import com.facebook.litho.sections.ChangesInfo;
|
||||
import com.facebook.litho.sections.ChangesetDebugConfiguration;
|
||||
import com.facebook.litho.sections.ChangesetDebugConfiguration.ChangesetDebugInfo;
|
||||
import com.facebook.litho.sections.ChangesetDebugConfiguration.ChangesetDebugListener;
|
||||
import com.facebook.litho.sections.Section;
|
||||
import com.facebook.litho.sections.SectionsLogEventUtils;
|
||||
@@ -50,7 +51,12 @@ public class ChangesetDebug implements ChangesetDebugListener {
|
||||
sSectionsFlipperPlugin = listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChangesetApplied(
|
||||
Section rootSection,
|
||||
ChangesInfo changesInfo,
|
||||
String surfaceId,
|
||||
ChangesetDebugInfo changesetDebugInfo) {}
|
||||
|
||||
public void onChangesetApplied(
|
||||
Section rootSection,
|
||||
Section oldRootSection,
|
||||
|
||||
Reference in New Issue
Block a user