fix: 修复withRemoteConfig 实现的自动刷新无法关闭问题 (#2448)

This commit is contained in:
liaoxuezhi 2021-08-26 19:54:31 +08:00 committed by GitHub
parent 29009d7e55
commit a799703409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,7 @@ export function withRemoteConfig<P = any>(
);
} else if (env && isEffectiveApi(source, data)) {
this.loadConfig();
source.autoRefresh !== false &&
this.toDispose.push(
reaction(
() => {