fix(core): add immediate flag to prop watchers
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user