theatre/packages/r3f/src/utils.ts
Andrew Prifer c1e515a13f
Merge pull request #145
* Fix RefreshSnapshot component and make useRefreshSnapshot not a hook,…
2022-05-04 17:10:42 +02:00

3 lines
112 B
TypeScript

import {useEditorStore} from './store'
export const refreshSnapshot = useEditorStore.getState().createSnapshot