Skip to content

Commit

Permalink
Send initial tree of UI elements when connecting a RemoteRootElement
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Feb 17, 2024
1 parent 7e9fe80 commit 9576a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-parrots-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@remote-dom/core': patch
---

Send initial tree of UI elements when connecting a `RemoteRootElement`
2 changes: 2 additions & 0 deletions packages/core/source/elements/RemoteRootElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export class RemoteRootElement extends HTMLElement {
i,
]);
}

connection.mutate(records);
}

updateRemoteProperty(name: string, value?: unknown) {
Expand Down

0 comments on commit 9576a72

Please sign in to comment.