Skip to content

Commit 1a04f64

Browse files
committed
fix(component tree): removed component sending update too soon, closes #1348
1 parent 8783c82 commit 1a04f64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app-backend-core/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ async function connect () {
166166
const parentId = getComponentId(app, parentUid, ctx)
167167
if (isSubscribed(BridgeSubscriptions.COMPONENT_TREE, sub => sub.payload.instanceId === parentId)) {
168168
// @TODO take into account current filter
169-
sendComponentTreeData(parentId, null, ctx)
169+
requestAnimationFrame(() => {
170+
sendComponentTreeData(parentId, null, ctx)
171+
})
170172
}
171173

172174
const id = getComponentId(app, uid, ctx)

0 commit comments

Comments
 (0)