Skip to content

Commit

Permalink
fix: fix issue where the configuration was not being loaded before ac…
Browse files Browse the repository at this point in the history
…tions were performed (#539)
  • Loading branch information
tangcent authored Apr 22, 2024
1 parent 60d997d commit 0173f21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class EnhancedConfigReader : BaseConfigReader() {
contextSwitchListener.onModuleChange {
loadConfigList()
}
//fix: https://github.com/tangcent/easy-yapi/issues/1121
//if the module is null, the contextSwitchListener will not be triggered
if (contextSwitchListener.getModule() == null) {
loadConfigList()
}
} finally {
notInit = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@

If you need to enable the built-in recommended configuration.Go to [Preference -> Other Setting -> EasyApi -> Recommend]
[DEBUG] load remote config
[TRACE] No config be found
[DEBUG] use built-in config
[DEBUG] use recommend config
[DEBUG] Even useRecommendConfig was true, but no recommend config be selected!

If you need to enable the built-in recommended configuration.Go to [Preference -> Other Setting -> EasyApi -> Recommend]
[DEBUG] load remote config
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
[DEBUG] use built-in config
[DEBUG] use recommend config
[DEBUG] load remote config
[TRACE] No config be found
[DEBUG] use built-in config
[DEBUG] use recommend config
[DEBUG] load remote config

0 comments on commit 0173f21

Please sign in to comment.