Browse Source

Clean store on setRoot

yogevbd 5 years ago
parent
commit
2e08f1a84d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/ios/RNNCommandsHandler.m

+ 1
- 0
lib/ios/RNNCommandsHandler.m View File

@@ -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