mediator is not listening to the event dispatched by the model second time.

i am working on game and i encountered a problem with the
mediator not listening to the event dispatched by the model second
time

basically, i have a model that dispatches an event whenever the
value 'x' is updated.
when the view initializes, the view mediator dispatches an event on
being registered. this flow will finally update the value 'x' in
the model. the model will then dispatch an event that the value has
been updated with the new value. this event is listened
(contextlistener) in the original mediator that dispatched the
event in the first place. this mediator will then update the
view.
when i come back to that view the second time, the event is
dispatched by the model( i confirmed this) but the mediator is not
listening to it.

when i come back to that view the second time, the event is
dispatched by the model( i confirmed this) but the mediator is not
listening to it.

Could it be that the view has been removed from stage,
intentionally, or through re-parenting? Are there some transition
effects going on in your view, or a change of states, or anything
else that could cause re-parenting?

Well, without seeing some code, I'm still thinking that there
are some race condition issues in your code. Maybe some
asynchronous process (service call) ? What's the exact workflow in
your scenario?

the second case is also not the issue, the event is dispatched
only after the mediator has been created.

Do you mean that the mediator has been destroyed and created
again, because the view has been removed from/added to the stage?
If yes, then maybe the model dispatches the event before the
mediator had a chance to be created, and thus it is not able to add
a listener for the event?

Could you attach a bare-bone project reproducing the issue? I
would take a look at it.