File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/remote-config/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,14 @@ export async function fetchConfig(remoteConfig: RemoteConfig): Promise<void> {
137
137
* @param fetchResponse - The fetchResponse containing the config values and eTag
138
138
* with which to hydrate the internal state.
139
139
*/
140
- export async function setRenderedConfig ( remoteConfig : RemoteConfig , fetchResponse : FetchResponse ) {
140
+ export async function setConfigState ( remoteConfig : RemoteConfig , fetchResponse : FetchResponse ) {
141
141
const rc = getModularInstance ( remoteConfig ) as RemoteConfigImpl ;
142
142
await Promise . all ( [
143
143
rc . _storage . setLastSuccessfulFetchResponse ( fetchResponse ) ,
144
- rc . _storage . setActiveConfigEtag ( fetchResponse . eTag || '' ) ,
145
144
rc . _storageCache . setLastSuccessfulFetchTimestampMillis ( Date . now ( ) ) ,
146
145
rc . _storageCache . setLastFetchStatus ( 'success' ) ,
146
+ // TODO - maybe we just call activate() here?
147
+ rc . _storage . setActiveConfigEtag ( fetchResponse . eTag || '' ) ,
147
148
rc . _storageCache . setActiveConfig ( fetchResponse . config || { } ) ,
148
149
] ) ;
149
150
}
You can’t perform that action at this time.
0 commit comments