refactor(core): use watcheffect to observe node dimensions

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-10 15:53:38 +01:00
committed by Braks
parent 9a14d8b349
commit a5ee9d978c
2 changed files with 10 additions and 7 deletions
@@ -29,7 +29,7 @@ until(() => nodes.length > 0 && getNodesInitialized.length === nodes.length)
onMounted(() => {
resizeObserver = new ResizeObserver((entries) => {
const updates = entries.map((entry: ResizeObserverEntry) => {
const updates = entries.map((entry) => {
const id = entry.target.getAttribute('data-id') as string
return {