fix(core): add immediate flag to prop watchers

This commit is contained in:
braks
2023-11-03 17:06:51 +01:00
committed by Braks
parent 849324eb11
commit ac8dab30c7

View File

@@ -160,6 +160,9 @@ export function useWatchProps(
store.setMaxZoom(props.maxZoom)
}
},
{
immediate: true,
},
)
})
}
@@ -173,6 +176,7 @@ export function useWatchProps(
store.setMinZoom(props.minZoom)
}
},
{ immediate: true },
)
})
}
@@ -186,6 +190,9 @@ export function useWatchProps(
store.setTranslateExtent(props.translateExtent)
}
},
{
immediate: true,
},
)
})
}
@@ -199,6 +206,9 @@ export function useWatchProps(
store.setNodeExtent(props.nodeExtent)
}
},
{
immediate: true,
},
)
})
}
@@ -212,6 +222,9 @@ export function useWatchProps(
store.applyDefault.value = props.applyDefault
}
},
{
immediate: true,
},
)
})
}
@@ -237,6 +250,7 @@ export function useWatchProps(
store.autoConnect.value = props.autoConnect
}
},
{ immediate: true },
)
watch(