mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fixing crash in ComponentDescriptorRegistry
Summary: Until ComponentDescriptorProviderRequest is not fully implemented we need to disable the assert because it enforces constraints that we don't satisfy yet. Reviewed By: JoshuaGross Differential Revision: D17677856 fbshipit-source-id: bdf96a04a16981f1c639f646f254e8f3dd799419
This commit is contained in:
committed by
Facebook Github Bot
parent
101125f891
commit
3e23a21025
@@ -135,7 +135,15 @@ ComponentDescriptor const &ComponentDescriptorRegistry::at(
|
||||
mutex_.lock_shared();
|
||||
|
||||
it = _registryByName.find(unifiedComponentName);
|
||||
assert(it != _registryByName.end());
|
||||
|
||||
/*
|
||||
* TODO: T54849676
|
||||
* Uncomment the `assert` after the following block that checks
|
||||
* `_fallbackComponentDescriptor` is no longer needed. The assert assumes
|
||||
* that `componentDescriptorProviderRequest` is always not null and register
|
||||
* some component on every single request.
|
||||
*/
|
||||
// assert(it != _registryByName.end());
|
||||
}
|
||||
|
||||
if (it == _registryByName.end()) {
|
||||
|
||||
Reference in New Issue
Block a user