Skip to content

Commit dbdfc41

Browse files
committed
fix(hook): apps length used to show devtools pane
1 parent 602e184 commit dbdfc41

File tree

1 file changed

+2
-0
lines changed
  • packages/app-backend-core/src

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function installHook (target) {
2121
initialState: null,
2222
storeModules: null,
2323
flushStoreModules: null,
24+
apps: [],
2425

2526
_replayBuffer (event) {
2627
const buffer = this._buffer
@@ -106,6 +107,7 @@ export function installHook (target) {
106107
version,
107108
types
108109
}
110+
hook.apps.push(appRecord)
109111
hook.emit('app:add', appRecord)
110112
})
111113

0 commit comments

Comments
 (0)