single-spa-angular

How to share UI state in single-spa using RxJs?

≡放荡痞女 提交于 2021-01-07 02:27:34
问题 As per the single-spa official doc, we can share the application's UI state by using RxJs. Observables / Subjects (RxJs) - one microfrontend emits new values to a stream that can be consumed by any other microfrontend. It exports the observable to all microfrontends from its in-browser module, so that others may import it. Link: https://single-spa.js.org/docs/recommended-setup/#ui-state Link: https://single-spa.js.org/docs/faq/#how-can-i-share-application-state-between-applications I was