mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Switch to using safer UpdateState mechanism
Summary: Update FabricViewStateManager so that the caller can bail out of updates by returning null. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D22966024 fbshipit-source-id: 31cd9ec8a9a9918fbb94844e30ed1a2fcc61997d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d0e710bfb3
commit
0713246e7b
@@ -47,12 +47,6 @@ public class StateWrapperImpl implements StateWrapper {
|
||||
public native void updateStateWithFailureCallbackImpl(
|
||||
@NonNull NativeMap map, Object self, int updateStateId);
|
||||
|
||||
@Override
|
||||
public void updateState(@NonNull WritableMap map) {
|
||||
mUpdateStateId++;
|
||||
updateStateImpl((NativeMap) map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateState(@NonNull WritableMap map, Runnable failureCallback) {
|
||||
mUpdateStateId++;
|
||||
|
||||
Reference in New Issue
Block a user