File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,13 @@ export function createStore<T = any>({
251
251
` ) ;
252
252
}
253
253
}
254
- if ( Array . isArray ( service [ subscriptionsKey ] ) ) {
255
- subscriptions . push ( service [ subscriptionsKey ] ! ) ;
254
+ if ( ! Array . isArray ( service [ subscriptionsKey ] ) ) {
255
+ // support any subscriptions with ref
256
+ Object . assign ( service , {
257
+ [ subscriptionsKey ] : [ ] ,
258
+ } ) ;
256
259
}
260
+ subscriptions . push ( service [ subscriptionsKey ] ! ) ;
257
261
Object . defineProperties ( service , {
258
262
[ modulesKey ] : {
259
263
enumerable : false ,
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
/* eslint-disable @typescript-eslint/no-empty-function */
2
3
/* eslint-disable no-param-reassign */
3
4
/* eslint-disable no-shadow */
@@ -310,6 +311,7 @@ export const createSharedApp = async <
310
311
) ;
311
312
}
312
313
const { bootstrap } = app ;
314
+ // todo: app.destroy with transport destroy
313
315
return {
314
316
...app ,
315
317
bootstrap : async ( ...args : S ) => {
You can’t perform that action at this time.
0 commit comments