File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import initMobxReactUpdatesHighlighter from './mobxReactUpdatesHighlighter';
5
5
import initMobxLogBackend from './mobxLog' ;
6
6
7
7
export default ( bridge , hook ) => {
8
+ console . log ( 'initBackend called' ) ;
8
9
if ( ! hook ) {
9
10
if ( __DEV__ ) {
10
11
throw new Error ( '' ) ;
@@ -28,8 +29,12 @@ export default (bridge, hook) => {
28
29
backends . forEach ( ( { setup } ) => setup ( mobxid , hook . collections [ mobxid ] ) ) ;
29
30
} ) ;
30
31
32
+ console . log ( 'initBackend subscribing to backend:ping' ) ;
31
33
disposables . push (
32
- bridge . sub ( 'backend:ping' , ( ) => bridge . send ( 'frontend:pong' ) ) ,
34
+ bridge . sub ( 'backend:ping' , ( ) => {
35
+ console . log ( 'initBackend received backend:ping' ) ;
36
+ bridge . send ( 'frontend:pong' ) ;
37
+ } ) ,
33
38
hook . sub ( 'instances-injected' , mobxid => {
34
39
backends . forEach ( p => p . setup ( mobxid , hook . collections [ mobxid ] ) ) ;
35
40
} ) ,
You can’t perform that action at this time.
0 commit comments