@pinegrow/vite-plugin 3.0.0-beta.100 → 3.0.0-beta.101
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/dist/index.cjs +1 -1
- package/dist/vue/index.js +6 -1
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { onBeforeMount, onMounted, onBeforeUnmount, getCurrentInstance, ref, reactive, computed } from 'vue'
|
|
1
|
+
import { onBeforeMount, onMounted, onBeforeUnmount, getCurrentInstance, ref, reactive, computed, onUpdated } from 'vue'
|
|
2
2
|
|
|
3
3
|
export function usePinegrow() {
|
|
4
4
|
const initCache = () => {
|
|
@@ -25,6 +25,7 @@ export function usePinegrow() {
|
|
|
25
25
|
if (el.isConnected) {
|
|
26
26
|
elCacheNodes.forEach(elCacheObj => {
|
|
27
27
|
if (
|
|
28
|
+
// elCacheObj.vnode.el.isConnected &&
|
|
28
29
|
elCacheObj.instance.isMounted &&
|
|
29
30
|
!elCacheObj.instance.isUnmounted &&
|
|
30
31
|
elCacheObj.pgId &&
|
|
@@ -51,6 +52,7 @@ export function usePinegrow() {
|
|
|
51
52
|
if (el.isConnected) {
|
|
52
53
|
elCacheNodes.forEach(elCacheObj => {
|
|
53
54
|
if (
|
|
55
|
+
// elCacheObj.vnode.el.isConnected &&
|
|
54
56
|
elCacheObj.instance.isMounted &&
|
|
55
57
|
!elCacheObj.instance.isUnmounted &&
|
|
56
58
|
elCacheObj.localFile
|
|
@@ -363,6 +365,9 @@ export function usePinegrow() {
|
|
|
363
365
|
mountLocalComponent()
|
|
364
366
|
})
|
|
365
367
|
onBeforeUnmount(() => unmountLocalComponent())
|
|
368
|
+
onUpdated(() => {
|
|
369
|
+
mountLocalComponent()
|
|
370
|
+
})
|
|
366
371
|
|
|
367
372
|
return { pgUpdateElCache }
|
|
368
373
|
}
|