@seamly/web-ui 23.0.5 → 23.0.6-alpha.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamly/web-ui",
3
- "version": "23.0.5",
3
+ "version": "23.0.6-alpha.1",
4
4
  "main": "build/dist/lib/index.js",
5
5
  "types": "build/src/javascripts/index.d.ts",
6
6
  "exports": {
@@ -12,6 +12,7 @@ class ExternalApi {
12
12
  constructor(appConfig) {
13
13
  this._waitingActions = []
14
14
  this._instances = {}
15
+ this._timeoutId = undefined
15
16
  this.appConfig = appConfig
16
17
  this.context = {}
17
18
  }
@@ -123,7 +124,10 @@ class ExternalApi {
123
124
  this._instances[config.namespace] = instance
124
125
  // Clear the context after creating the instance, so we do not reuse it for the next
125
126
  this.context = {}
126
- instance.render()
127
+ window.clearTimeout(this._timeoutId)
128
+ this._timeoutId = window.setTimeout(() => {
129
+ instance.render()
130
+ }, 60)
127
131
  }
128
132
  }
129
133