theatre icon indicating copy to clipboard operation
theatre copied to clipboard

studio.transaction set method is throwing error when same code used with old and new versions

Open rm-vt opened this issue 10 months ago • 2 comments

Thanks for inventing this framework/lib.

Facing issues with studio.transaction set method.

Current package versions which is throwing error on set method

"@theatre/core": "^0.7.0",
"@theatre/studio": "^0.7.0",
"next": "14.1.0",

Old package versions - no error

"@theatre/core": "^0.4.7",
"@theatre/studio": "^0.4.7",
"react": "^17.0.2",
"react-dom": "^17.0.2"

TheatreSheetObject props(proxy object) shows diff implementation get(obj, props) vs get(pointerKey, prop) Right-side old version - ^0.4.7 Left-side new version - ^0.7.0 image

TheatreSheetObject implementation is different across versions image

Please help. Thanks.

rm-vt avatar Mar 28 '24 04:03 rm-vt

@rm-vt This looks interesting. Is there any way you can share a reproduction on Stackblitz/Codesandbox/Git repo?

AriaMinaei avatar Apr 11 '24 09:04 AriaMinaei

Sure. @AriaMinaei

Setup with old package versions: https://codesandbox.io/p/devbox/theatre-js-svg-animation-updated-forked-n63dy7

Setup with new package versions: https://codesandbox.io/p/devbox/threatrejs-nextjs-latest-svg-l98nvw

Please drag the robot hand as pointed out on both of the above setup to see the error!

image

Thanks.

rm-vt avatar Apr 11 '24 11:04 rm-vt