From 63056c5a5864515e0a9fa871dfc2a8e9d3de123d Mon Sep 17 00:00:00 2001 From: Cole Lawrence Date: Wed, 27 Jul 2022 10:44:57 -0400 Subject: [PATCH] fix validate path call (warning) & playground dom: Fix namespace warning --- packages/playground/src/shared/dom/Scene.tsx | 4 +--- theatre/core/src/sheets/TheatreSheet.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/playground/src/shared/dom/Scene.tsx b/packages/playground/src/shared/dom/Scene.tsx index 0d9b9a7..db9f5bf 100644 --- a/packages/playground/src/shared/dom/Scene.tsx +++ b/packages/playground/src/shared/dom/Scene.tsx @@ -7,8 +7,6 @@ import {onChange, types} from '@theatre/core' import type {IScrub, IStudio} from '@theatre/studio' import type {ShorthandCompoundPropsToInitialValue} from '@theatre/core/propTypes/internals' -studio.initialize({usePersistentStorage: false}) - const textInterpolate = (left: string, right: string, progression: number) => { if (!left || right.startsWith(left)) { const length = Math.floor( @@ -223,7 +221,7 @@ export const Scene: React.FC<{project: IProject}> = ({project}) => { {boxes.map((id) => ( diff --git a/theatre/core/src/sheets/TheatreSheet.ts b/theatre/core/src/sheets/TheatreSheet.ts index f0940e4..129cf01 100644 --- a/theatre/core/src/sheets/TheatreSheet.ts +++ b/theatre/core/src/sheets/TheatreSheet.ts @@ -99,7 +99,7 @@ export default class TheatreSheet implements ISheet { const internal = privateAPI(this) const sanitizedPath = validateAndSanitiseSlashedPathOrThrow( key, - `sheet.object("${key}", ...)`, + `sheet.object`, ) const existingObject = internal.getObject(sanitizedPath as ObjectAddressKey)