mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Check if the allocated views set for exists for surface on mount
Summary: Adds a check to verify that we are not trying to insert a new view id into a non-existent set. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D33621031 fbshipit-source-id: 8468af69bea250a70d656789ea819c39b55a9de6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0b48ef7ca8
commit
ead669524e
@@ -413,7 +413,8 @@ void FabricMountingManager::executeMount(
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldRememberAllocatedViews_) {
|
||||
if (shouldRememberAllocatedViews_ &&
|
||||
allocatedViewsIterator != allocatedViewRegistry_.end()) {
|
||||
auto &views = allocatedViewsIterator->second;
|
||||
for (auto const &mutation : mutations) {
|
||||
switch (mutation.type) {
|
||||
|
||||
Reference in New Issue
Block a user