@jetbrains/ring-ui 6.0.55 → 6.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,10 @@ export default class Auth {
137
137
  this.addListener(LOGOUT_EVENT, this.config.onLogout);
138
138
  }
139
139
  if (this.config.reloadOnUserChange) {
140
- this.addListener(USER_CHANGED_EVENT, () => this._reloadCurrentPage());
140
+ this.addListener(USER_CHANGED_EVENT, () => {
141
+ // Timeout is needed to ensure all other listeners triggered before stopping current page
142
+ setTimeout(() => this._reloadCurrentPage());
143
+ });
141
144
  }
142
145
  this.addListener(LOGOUT_POSTPONED_EVENT, () => this._setPostponed(true));
143
146
  this.addListener(USER_CHANGE_POSTPONED_EVENT, () => this._setPostponed(true));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "6.0.55",
3
+ "version": "6.0.56",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",