fix: pass props to store state

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-16 20:04:00 +01:00
parent 808c6b17e0
commit 9b604e7628
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -116,6 +116,7 @@ const store = useStore(props)
const hooks = useHooks(emit)
const init = (opts: typeof props) => {
store.$state = { ...store.$state, ...opts }
store.setElements(opts.elements)
store.setMinZoom(opts.minZoom)
store.setMaxZoom(opts.maxZoom)