29e036638b
Also remove a stray console log and make makeStoreKey make more sense.
7 lines
336 B
TypeScript
7 lines
336 B
TypeScript
import {editorStore} from './store'
|
|
import type {ISheetObject} from '@theatre/core'
|
|
|
|
export const refreshSnapshot = editorStore.getState().createSnapshot
|
|
|
|
export const makeStoreKey = (sheetObjectAddress: ISheetObject['address']) =>
|
|
`${sheetObjectAddress.sheetId}:${sheetObjectAddress.sheetInstanceId}:${sheetObjectAddress.objectKey}`
|