From e73c7f778ecdd5625716bcb0fa4327a3f76f19ec Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Wed, 22 Sep 2021 09:34:21 +0200 Subject: [PATCH] Fixed runtime of examples/r3f-cra --- examples/r3f-cra/src/App.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/r3f-cra/src/App.js b/examples/r3f-cra/src/App.js index cd9ff9c..27a4f4f 100644 --- a/examples/r3f-cra/src/App.js +++ b/examples/r3f-cra/src/App.js @@ -4,7 +4,11 @@ import {useState, useEffect, useRef} from 'react' import {useFrame, Canvas} from '@react-three/fiber' import {Shadow, softShadows} from '@react-three/drei' import React from 'react' -import {editable as e, Wrapper} from '@theatre/r3f' +import {editable as e, SheetProvider, extension} from '@theatre/r3f' +import studio from '@theatre/studio' + +studio.extend(extension) +studio.initialize() // Soft shadows are expensive, comment and refresh when it's too slow softShadows() @@ -85,7 +89,7 @@ function App() { // @ts-ignore shadowMap > - getProject('Playground - R3F').sheet('R3F-Canvas')} > {/* @ts-ignore */} @@ -135,7 +139,7 @@ function App() { />