diff --git a/compat-tests/fixtures/vite-react18/package/src/App.tsx b/compat-tests/fixtures/vite-react18/package/src/App.tsx
new file mode 100644
index 0000000..d67a211
--- /dev/null
+++ b/compat-tests/fixtures/vite-react18/package/src/App.tsx
@@ -0,0 +1,79 @@
+import {getProject} from '@theatre/core'
+import React from 'react'
+import {Canvas} from '@react-three/fiber'
+import {editable as e, SheetProvider, PerspectiveCamera} from '@theatre/r3f'
+import state from './state.json'
+
+// credit: https://codesandbox.io/s/camera-pan-nsb7f
+
+function Plane({color, theatreKey, ...props}: any) {
+ return (
+
+
+
+
+ )
+}
+
+export default function App() {
+ return (
+
+ )
+}
diff --git a/compat-tests/fixtures/vite-react18/package/src/main.tsx b/compat-tests/fixtures/vite-react18/package/src/main.tsx
index a91de84..13aa6a7 100644
--- a/compat-tests/fixtures/vite-react18/package/src/main.tsx
+++ b/compat-tests/fixtures/vite-react18/package/src/main.tsx
@@ -1,92 +1,13 @@
-import {getProject} from '@theatre/core'
import ReactDOM from 'react-dom/client'
-import React from 'react'
-import {Canvas} from '@react-three/fiber'
import studio from '@theatre/studio'
-import {editable as e, SheetProvider} from '@theatre/r3f'
import extension from '@theatre/r3f/dist/extension'
+import App from './App'
if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') {
studio.extend(extension)
studio.initialize({usePersistentStorage: false})
}
-// credit: https://codesandbox.io/s/camera-pan-nsb7f
-
-function Plane({color, theatreKey, ...props}: any) {
- return (
-
-
-
-
- )
-}
-
-function App() {
- return (
-
- )
-}
-
-const project = getProject('Project')
-const sheet = project.sheet('Sheet')
-const obj = sheet.object('Obj', {str: 'some string', num: 0})
-
-const container = document.getElementById('root')
+const container = document.getElementById('root')!
const root = ReactDOM.createRoot(container)
-root.render(hi)
+root.render()
diff --git a/compat-tests/fixtures/vite-react18/package/src/state.json b/compat-tests/fixtures/vite-react18/package/src/state.json
new file mode 100644
index 0000000..5565206
--- /dev/null
+++ b/compat-tests/fixtures/vite-react18/package/src/state.json
@@ -0,0 +1,26 @@
+{
+ "sheetsById": {
+ "R3F-Canvas": {
+ "staticOverrides": {
+ "byObject": {
+ "Camera": {
+ "position": {
+ "x": -1.9718646329873923,
+ "y": 0,
+ "z": 5.6728262108991725
+ }
+ },
+ "plane3": {
+ "rotation": {
+ "x": -1.5707963267948966,
+ "y": -1.6653345369377348e-16,
+ "z": -0.9115259508891379
+ }
+ }
+ }
+ }
+ }
+ },
+ "definitionVersion": "0.4.0",
+ "revisionHistory": ["-NXkC2GceSVBoVqa", "Bw7ng1kdcWmMO5DN"]
+}