FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Turn off hot-swap upgrade by default, making it opt-in

Open arinwt opened this issue 5 years ago • 3 comments

Right now the host refreshes the page on "contextDisposed" event by calling container.close() in an event handler.

Since this is our primary code path for the foreseeable future, we'd like to move this responsibility into the container itself, giving a way to opt in to hot-swap upgrades, but by default closing the entire container.

The main work here is figuring out where to put this configuration.

arinwt avatar Dec 14 '20 23:12 arinwt

We should just make this a config passed in from the loader, and have it off hot swap off by default

anthony-murphy avatar Dec 18 '20 21:12 anthony-murphy

How should the host configure the loader for this?

  • options (type: any)
  • scope (type: IFluidObject)
  • something new in constructor contained only within loader?
  • new request header?

arinwt avatar Jan 04 '21 18:01 arinwt

options seem right to me. default to off. we can turn on in tests where it makes sense.

anthony-murphy avatar Jan 04 '21 18:01 anthony-murphy