fix(core): hide graph until initial fitview is done (#1459)

* fix(core): hide graph until initial fitview is done

* chore(changeset): add

* fix(core): wait for fit view to finish
This commit is contained in:
Braks
2024-06-13 00:04:51 +02:00
parent 0c5dfddc47
commit ed2e5744fd
3 changed files with 21 additions and 7 deletions
+3 -2
View File
@@ -173,8 +173,9 @@ export function useActions(
}
if (!state.fitViewOnInitDone && state.fitViewOnInit) {
viewportHelper.value.fitView()
state.fitViewOnInitDone = true
viewportHelper.value.fitView().then(() => {
state.fitViewOnInitDone = true
})
}
if (changes.length) {