@live-change/vue3-components 0.8.102 → 0.8.104

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.
@@ -51,7 +51,8 @@
51
51
  loading: [],
52
52
  loadingBlockId: 0,
53
53
  connectionProblem: false,
54
- suspenseTask: null
54
+ suspenseTask: null,
55
+ r: Math.random()
55
56
  }
56
57
  },
57
58
  setup() {
@@ -76,23 +77,25 @@
76
77
  },
77
78
  methods: {
78
79
  handlePending() {
79
- let oldSuspenseTask = this.suspenseTask
80
+ const oldSuspenseTask = this.suspenseTask
80
81
  this.suspenseTask = { name: 'View loading' }
81
82
  this.loadingStarted(this.suspenseTask)
82
83
  if(oldSuspenseTask) this.loadingFinished(oldSuspenseTask)
83
84
  },
84
85
  handleResolve() {
85
- if(this.suspenseTask) this.loadingFinished(this.suspenseTask)
86
+ let oldSuspenseTask = this.suspenseTask
86
87
  this.suspenseTask = null
88
+ if(oldSuspenseTask) this.loadingFinished(oldSuspenseTask)
89
+ setTimeout(() => {
90
+ this.loading = this.loading.slice()
91
+ }, 10)
87
92
  },
88
93
  handleFallback() {
89
-
90
94
  },
91
95
  loadingStarted(task) {
92
96
  if(this.loading.length === 0) {
93
97
  analytics.emit('loadingStarted', { task: task.name })
94
98
  info('LOADING STARTED!')
95
-
96
99
  const loadingBlockId = this.loadingBlockId
97
100
  this.loadingTimeout = setTimeout(() => {
98
101
  if(loadingBlockId === this.loadingBlockId && this.loading.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/vue3-components",
3
- "version": "0.8.102",
3
+ "version": "0.8.104",
4
4
  "description": "Live Change Framework - vue components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-stack",
23
23
  "dependencies": {
24
- "@live-change/vue3-ssr": "^0.8.102",
24
+ "@live-change/vue3-ssr": "^0.8.104",
25
25
  "debug": "^4.3.4",
26
26
  "mitt": "3.0.1",
27
27
  "vue": "^3.4.29"
28
28
  },
29
- "gitHead": "48f0f33881894e7036fe3cec501fe9ac6c103918"
29
+ "gitHead": "cb3692471fdd1ccd482eaa14a85b0cf1aa4a2efb"
30
30
  }