HistoryRestoreHandler: (
    this: EEvisionAPI,
    hstate: DeepReadonly<HistoryState>,
    extern: unknown,
) => Promise<boolean>

Type of the handler that is called whenever a history state needs to be restored.

Type declaration

    • (
          this: EEvisionAPI,
          hstate: DeepReadonly<HistoryState>,
          extern: unknown,
      ): Promise<boolean>
    • Parameters

      • this: EEvisionAPI
      • hstate: DeepReadonly<HistoryState>

        the whole history state, including the data contributed by the EEvision core and the parts contributed by the parent application.

      • extern: unknown

        the part of the history state that is contributed by the parent application.

      Returns Promise<boolean>

      true if server synchronization is necessary, e.g., when the schematic or core settings have changed.