
Highlighter is autolocked, so we shouldn't show the lock icon ### Change Type - [x] `patch` — Bug fix [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - We no longer show the tool lock option for highlighter - it didn't do anything anyway
72 lines
941 B
Text
72 lines
941 B
Text
---
|
|
title: loadSessionStateSnapshotIntoStore
|
|
status: published
|
|
category: editor
|
|
group: Function
|
|
author: api
|
|
date: 06/23/2023
|
|
order: 81
|
|
---<Small>Public Function</Small>
|
|
|
|
Loads a snapshot of the editor's instance state into the store of a new editor instance.
|
|
|
|
|
|
##### Parameters
|
|
|
|
|
|
<ParametersTable>
|
|
|
|
<ParametersTableRow>
|
|
<ParametersTableName>
|
|
|
|
`store`
|
|
|
|
</ParametersTableName>
|
|
<ParametersTableDescription>
|
|
|
|
```ts
|
|
TLStore
|
|
```
|
|
|
|
The store to load the instance state into
|
|
|
|
|
|
|
|
|
|
</ParametersTableDescription>
|
|
</ParametersTableRow>
|
|
<ParametersTableRow>
|
|
<ParametersTableName>
|
|
|
|
`snapshot`
|
|
|
|
</ParametersTableName>
|
|
<ParametersTableDescription>
|
|
|
|
```ts
|
|
TLSessionStateSnapshot
|
|
```
|
|
|
|
The instance state snapshot to load
|
|
|
|
|
|
|
|
|
|
</ParametersTableDescription>
|
|
</ParametersTableRow>
|
|
</ParametersTable>
|
|
|
|
##### Returns
|
|
|
|
|
|
```ts
|
|
void
|
|
```
|
|
|
|
|
|
|
|
|
|
##### References
|
|
|
|
[TLStore](/gen/tlschema/TLStore-type), [TLSessionStateSnapshot](/gen/editor/TLSessionStateSnapshot-interface)
|
|
|