Parcourir la source

Clean store on setRoot

yogevbd il y a 6 ans
Parent
révision
2e08f1a84d
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1
    0
      lib/ios/RNNCommandsHandler.m

+ 1
- 0
lib/ios/RNNCommandsHandler.m Voir le fichier

@@ -56,6 +56,7 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
56 56
 	[self assertReady];
57 57
 	
58 58
 	[_modalManager dismissAllModalsAnimated:NO];
59
+	[_store removeAllComponents];
59 60
 	
60 61
 	UIViewController *vc = [_controllerFactory createLayoutAndSaveToStore:layout[@"root"]];
61 62