Feb 27, 2021
Object.keys(window) returns an array of elements appended to the window object.
Running this command before loading a micro-frontend would provide the boostrap basic state, then when the bootstrap unloads a micro-frontend it can run an algorithm for deleting all the objects on window but the one in the original state.
Ideally a micro-frontend should not rewrite existing window properties but it should use it’s own object to store custom objects