Skip to content

Commit

Permalink
fix(component): Always updated the inspected component even if the up…
Browse files Browse the repository at this point in the history
…dated hook is not triggered. (#2065)
  • Loading branch information
Azurewarth0920 authored Feb 4, 2024
1 parent 58ef2f7 commit 4b09a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-backend-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ async function connect () {
const sendComponentUpdate = throttle(async (appRecord: AppRecord, id: string) => {
try {
// Update component inspector
if (id && isSubscribed(BridgeSubscriptions.SELECTED_COMPONENT_DATA, sub => sub.payload.instanceId === id)) {
await sendSelectedComponentData(appRecord, id, ctx)
if (ctx.currentInspectedComponentId) {
await sendSelectedComponentData(appRecord, ctx.currentInspectedComponentId, ctx)
}

// Update tree (tags)
Expand Down

0 comments on commit 4b09a22

Please sign in to comment.