Skip to content

Commit

Permalink
fix(client): should not reset root-state expanded-state on updated
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jun 6, 2024
1 parent 0be05c3 commit 48a72ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ function onInspectorStateUpdated(_data: string) {
const { inspectorId: _inspectorId, ...filtered } = data.state
state.value = filterEmptyState(filtered as any)
// expandedStateNodes.value = Array.from({ length: Object.keys(state.value).length }, (_, i) => `${i}`)
}
onRpcConnected(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ function onInspectorStateUpdated(_data: string) {
state: _state.state,
getters: _state.getters,
})
expandedStateNodes.value = Array.from({ length: Object.keys(state.value).length }, (_, i) => `${i}`)
}
rpc.functions.on(DevToolsMessagingEvents.INSPECTOR_TREE_UPDATED, onInspectorTreeUpdated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ function onInspectorStateUpdated(_data: string) {
// @ts-expect-error skip type check
state.value = filterEmptyState(_state!)
expandedStateNodes.value = Array.from({ length: Object.keys(state.value).length }, (_, i) => `${i}`)
}
rpc.functions.on(DevToolsMessagingEvents.INSPECTOR_TREE_UPDATED, onInspectorTreeUpdated)
Expand Down

0 comments on commit 48a72ef

Please sign in to comment.