fix(core): add immediate flag to prop watchers

This commit is contained in:
braks
2023-11-04 19:25:49 +01:00
committed by Braks
parent 849324eb11
commit ac8dab30c7
@@ -160,6 +160,9 @@ export function useWatchProps(
store.setMaxZoom(props.maxZoom) store.setMaxZoom(props.maxZoom)
} }
}, },
{
immediate: true,
},
) )
}) })
} }
@@ -173,6 +176,7 @@ export function useWatchProps(
store.setMinZoom(props.minZoom) store.setMinZoom(props.minZoom)
} }
}, },
{ immediate: true },
) )
}) })
} }
@@ -186,6 +190,9 @@ export function useWatchProps(
store.setTranslateExtent(props.translateExtent) store.setTranslateExtent(props.translateExtent)
} }
}, },
{
immediate: true,
},
) )
}) })
} }
@@ -199,6 +206,9 @@ export function useWatchProps(
store.setNodeExtent(props.nodeExtent) store.setNodeExtent(props.nodeExtent)
} }
}, },
{
immediate: true,
},
) )
}) })
} }
@@ -212,6 +222,9 @@ export function useWatchProps(
store.applyDefault.value = props.applyDefault store.applyDefault.value = props.applyDefault
} }
}, },
{
immediate: true,
},
) )
}) })
} }
@@ -237,6 +250,7 @@ export function useWatchProps(
store.autoConnect.value = props.autoConnect store.autoConnect.value = props.autoConnect
} }
}, },
{ immediate: true },
) )
watch( watch(