Skip to content

Commit 2d3de4d

Browse files
Andrew Wangfacebook-github-bot
Andrew Wang
authored andcommitted
Fix a bug in StateHandler
Summary: We should only mark a component as needed when it actually presents in the tree, we didn't check that before adding to the set. Reviewed By: adityasharat Differential Revision: D43569656 fbshipit-source-id: cead38541af803f7ce7c714764c37fe2e9f93a4c
1 parent e24cc7e commit 2d3de4d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

litho-core/src/main/java/com/facebook/litho/StateHandler.java

-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ synchronized void applyStateUpdatesEarly(
266266
}
267267

268268
final StateContainer newStateContainer = stateContainer.clone();
269-
mNeededStateContainers.add(key);
270269
mStateContainers.put(key, newStateContainer);
271270
applyStateUpdates(key, newStateContainer);
272271
} catch (Exception ex) {

0 commit comments

Comments
 (0)