Singleton Manager: Example Complex
In this SPA (Single Page Application) demo you will be able to reproduce the solution.
The outcome is the same but this time internally there are two instances of Overlay Managers. And both are kept in sync buy an mediator with which the user actually interacts.
- Click on Page A
- Click on
block
- Click on Page B
- Click on
unblock
=> state is unblocked globally as there is only a single instance
With this solutions users can not break the app anymore.