vbo75
1
Hi,
What’s change when we put ‘true’ at the end of a command interceptor :
this.executed(‘shape.create’, function(context) {
…something to do
}, true);
In my case, in a beahvior class, the function isn’t execute when true is adding, why ?
Thanks.
Martin
2
The argument you are referring to is the unwrap
flag. If it is true, the event is unwrapped in the function:
You don’t get the event directly from the eventBus, but the context, command and event as separate arguments into the function.
If this is not working, can you please share a CodeSandbox that reproduces your issue in a way that we can inspect it?
Thank you!
vbo75
3
Ok, that’s why, when I check event.context param, I’ve got undefined.
Thanks a lot
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.