Singleton in shared module instantiated multiple times
jarecsni opened this issue · 0 comments
jarecsni commented
Hi,
First, apologies for asking a question here, but I'm quite desperately trying to find an answer for this. I'm having an exact same problem as described here: https://stackoverflow.com/questions/65467233/wp5-module-federation-singleton-instantiated-multiple-times?rq=2
Essentially no matter how I am trying to declare a node module (which I developed) as a shared library, it's pretty obvious that it is bundled by the remote, and if I debug it, a singleton class in the library gets loaded and the singleton instance instantiated by both the code bundled by the host app and the code bundled by the remote app.
Any ideas are welcome, been looking for days into this, nothing seems to work. Thanks!