FluidFramework
FluidFramework copied to clipboard
Clean up stopping of container context
Make sure everything accessible through ContainerContext can be completely disconnected/disposed. When a code proposal is accepted, the Container calls stop on the running Container Context and creates a new one. At least everything in our code (loader, runtime) should be completely disposed.
Make sure references are removed and event listeners are cleaned up. This can be done with surrogate event emitters to remove all listeners, wrapper objects, proxies, etc.