fc9df7c346
* Support multiple/nested sheets and sheet instances * Add playground for instances * Fix playground and example * Change r3f's objectKey to storeKey to avoid confusion * Update all editable/uniqueName variables used as store key to storeKey too * Fix lint warnings
7 lines
286 B
TypeScript
7 lines
286 B
TypeScript
import {useEditorStore} from './store'
|
|
import type {ISheet} from '@theatre/core'
|
|
|
|
export const refreshSnapshot = useEditorStore.getState().createSnapshot
|
|
|
|
export const makeStoreKey = (sheet: ISheet, name: string) =>
|
|
`${sheet.address.sheetId}:${sheet.address.sheetInstanceId}:${name}`
|