You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if you defined a single producer for an eventTrait (if it's not a list of producers), this method will remove the eventTrait key. Which will result in the component forgetting it consumes this kind of events although we just wanted it to stop using some producer.
Reproduce :
Here's an example with a component myComponent consuming SomeEvents events
When you want to remove a producer on your component, you can use MolAbstractComponentImpl>>forEvents:removeProducer:
However, if you defined a single producer for an eventTrait (if it's not a list of producers), this method will remove the eventTrait key. Which will result in the component forgetting it consumes this kind of events although we just wanted it to stop using some producer.
Reproduce :
Here's an example with a component myComponent consuming SomeEvents events
Temporary solution :
replacing this portion of the code :
ifFalse: [ (self eventsSubscribers removeKey: anEventTrait ) ]
with :
will check if the producer for the given eventTrait is the one we want to remove and if it's the case, it will set the value to the default one
The text was updated successfully, but these errors were encountered: