mobxjs / mobx-angular

The MobX connector for Angular.
MIT License
483 stars 59 forks source link

Mobx configuration #74

Closed ssi-hu-tasi-norbert closed 5 years ago

ssi-hu-tasi-norbert commented 6 years ago

Hello,

I'm tried to use multiple mobx(with multi app) in a single zone in a single-spa application but I can't work out the multiple instance error. If I'm right I can set isolateGlobalState: true to work it well, but I don't know how to.

I've tried in my main module:

import { configure } from 'mobx'; ... configure({ isolateGlobalState: true });

But it is not working.

So my question is how to configure mobx. Is there any workaround for multiple instance issue, I've tried anything I found in 1082 issue.

Thank you!

Norbert

adamkleingit commented 5 years ago

@ssi-hu-tasi-norbert have you found a solution? I have never tried this scenario. If you solve it I would love a PR

ssi-hu-tasi-norbert commented 5 years ago

Hi Adam!

To be honest I can't recall it. I went to different direction because the spa was not as stable as it should be. I couldn't find anything in the code but what I wrote above. I assume it was not the solution. It is possible that it was one of the reasons of changing ways.