File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
- [ fixed] Fixed throttling issue when fetch fails due to no network. (#6628 )
3
+ - [ fixed] Fixed issue where sometimes the local config returned is empty. (#7424 )
3
4
4
5
# v7.10.0
5
6
- [ changed] Throw exception if projectID is missing from FirebaseOptions. (#7725 )
Original file line number Diff line number Diff line change @@ -86,8 +86,7 @@ - (instancetype)initWithDBManager:(RCNConfigDBManager *)DBManager {
86
86
_bundleIdentifier = @" " ;
87
87
}
88
88
_DBManager = DBManager;
89
- // Waits for both config and Personalization data to load.
90
- _configLoadFromDBSemaphore = dispatch_semaphore_create (1 );
89
+ _configLoadFromDBSemaphore = dispatch_semaphore_create (0 );
91
90
[self loadConfigFromMainTable ];
92
91
}
93
92
return self;
@@ -123,12 +122,12 @@ - (void)loadConfigFromMainTable {
123
122
dispatch_semaphore_signal (self->_configLoadFromDBSemaphore );
124
123
}];
125
124
125
+ // TODO(karenzeng): Refactor personalization to be returned in loadMainWithBundleIdentifier above
126
126
[_DBManager loadPersonalizationWithCompletionHandler: ^(
127
127
BOOL success, NSDictionary *fetchedPersonalization,
128
128
NSDictionary *activePersonalization, NSDictionary *defaultConfig) {
129
129
self->_fetchedPersonalization = [fetchedPersonalization copy ];
130
130
self->_activePersonalization = [activePersonalization copy ];
131
- dispatch_semaphore_signal (self->_configLoadFromDBSemaphore );
132
131
}];
133
132
}
134
133
You can’t perform that action at this time.
0 commit comments