Closed mike-packetwerk closed 7 years ago
In https://github.com/mean-expert-official/loopback-component-realtime/blob/master/src/modules/FireLoop.ts#L493 the value broadcast only occurs if ctx.data exists.
I would expect if I have a FireLoopRef.on('value') I get notified whenever a model instance is changed, created or deleted.
FireLoopRef.on('value')
Seems to me that FireLoop.broadcast(ctx, 'value'); should be moved up 2 lines.
FireLoop.broadcast(ctx, 'value');
What do you think?
Hmm, seems like I missed the 'change' event. It does what I'm asking above.
In https://github.com/mean-expert-official/loopback-component-realtime/blob/master/src/modules/FireLoop.ts#L493 the value broadcast only occurs if ctx.data exists.
I would expect if I have a
FireLoopRef.on('value')
I get notified whenever a model instance is changed, created or deleted.Seems to me that
FireLoop.broadcast(ctx, 'value');
should be moved up 2 lines.What do you think?