code: function rootsChanged(props: Props) {
    return async ({ dispatch, client, getState }: ThunkArg) => {
      releaseActors(getState(), client);
      dispatch({
        type: "ROOTS_CHANGED",
        data: props
      });
    };
  }
docs: /*
  This action is dispatched when the `roots` prop, provided by a consumer of
  the ObjectInspector (inspector, console, …), is modified. It will clean the
  internal state properties (expandedPaths, loadedProperties, …) and release
  the actors consumed with the previous roots.
  It takes a props argument which reflects what is passed by the upper-level
  consumer.