DEV Community

Discussion on: Communication Between Micro Frontends

Collapse
 
theodesp profile image
Theofanis Despoudis

Ow my I smell trouble with those approaches. It looks like the window object has become the new playground...

Collapse
 
pavelloz profile image
Info Comment hidden by post author - thread only visible in this permalink
Paweł Kowalski

Microfrontends invention is a playground for bored feds anyways, so more 1999 patterns wont hurt ;-)

Collapse
 
florianrappl profile image
Florian Rappl

The examples should be just treated like such.

For most of these patterns you don't need to use window. Actually, a framework like Piral does not use any globals at all. Instead, each microfrontend exports a function that gets an object as argument. This is also shown in the article in a very rudimentary implementation.

There are other frameworks though, which only rely on globals. With these - I have exactly the same feeling ...

Some comments have been hidden by the post's author - find out more