From 53c15b2e590d9c25696a9fa0e832ec0c5c4504ba Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Wed, 16 Nov 2022 10:38:23 -0800 Subject: [PATCH] Remove litho observer Summary: There seem to be a number of issues with registering to all changes properly for litho observer. Removing it and allowing the decor view to do a full traversal fixes a number of problems. The performance with hardware rendering seems to be fine. This should be stopgap untill we tackle time travel properly Reviewed By: lblasa Differential Revision: D41304501 fbshipit-source-id: 5b7cdbd0dac04ba0dbf8dd5e449c99f0db4d0863 --- .../plugins/uidebugger/litho/UIDebuggerLithoSupport.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt index 069bb6c66..d2bb0234a 100644 --- a/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt +++ b/android/plugins/litho/src/main/java/com/facebook/flipper/plugins/uidebugger/litho/UIDebuggerLithoSupport.kt @@ -26,7 +26,5 @@ object UIDebuggerLithoSupport { register.register(MatrixDrawable::class.java, MatrixDrawableDescriptor) } - fun addObserver(observerFactory: TreeObserverFactory) { - observerFactory.register(LithoViewTreeObserverBuilder) - } + fun addObserver(observerFactory: TreeObserverFactory) {} }