From 862440d4a5ef91c09c92a5ec0ed38127decbbe46 Mon Sep 17 00:00:00 2001 From: Gleb Myznikov Date: Fri, 14 Jul 2023 14:43:09 +0300 Subject: [PATCH 1/4] docs: Remove doubled word --- docs/advanced/scaling-performance.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/scaling-performance.mdx b/docs/advanced/scaling-performance.mdx index 181ddedcac..89360629f3 100644 --- a/docs/advanced/scaling-performance.mdx +++ b/docs/advanced/scaling-performance.mdx @@ -272,7 +272,7 @@ You can define defaults like so: ### This is how you can put the system into regression -The only thing you have to do is call `regress()`. When exactly you do that, that is up to you, but it could be when when the mouse moves, or the scene is moving, for instance when controls fire their change-event. +The only thing you have to do is call `regress()`. When exactly you do that, that is up to you, but it could be when the mouse moves, or the scene is moving, for instance when controls fire their change-event. Say you are using controls, then the following code puts the system in regress when they are active: From 9865d7eae41bd817cd241d5c1e9b6c033f2476da Mon Sep 17 00:00:00 2001 From: Gleb Myznikov Date: Fri, 14 Jul 2023 14:44:20 +0300 Subject: [PATCH 2/4] docs: Add missing code string --- docs/tutorials/basic-animations.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tutorials/basic-animations.mdx b/docs/tutorials/basic-animations.mdx index ffca41a6e3..1a9ea6bd62 100644 --- a/docs/tutorials/basic-animations.mdx +++ b/docs/tutorials/basic-animations.mdx @@ -66,6 +66,7 @@ function MyAnimatedBox() { ```jsx useFrame(({ clock }) => { + const a = clock.getElapsedTime() myMesh.current.rotation.x = clock.getElapsedTime() }) ``` From d05b6b882b5538ac9b60a6f0fa60292b76129f02 Mon Sep 17 00:00:00 2001 From: Gleb Myznikov Date: Fri, 14 Jul 2023 14:44:52 +0300 Subject: [PATCH 3/4] docs: Remove hanging semicolon --- docs/tutorials/v8-migration-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/v8-migration-guide.mdx b/docs/tutorials/v8-migration-guide.mdx index af43fa4a73..4af987767f 100644 --- a/docs/tutorials/v8-migration-guide.mdx +++ b/docs/tutorials/v8-migration-guide.mdx @@ -217,7 +217,7 @@ This is also supported by all cameras that you create, be it a THREE.Perspective ```jsx import { PerspectiveCamera } from '@react-three/drei' -; + ``` From 207159414a17fd1f9caae35b41773b1584e8a304 Mon Sep 17 00:00:00 2001 From: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:45:41 -0500 Subject: [PATCH 4/4] Update basic-animations.mdx --- docs/tutorials/basic-animations.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/tutorials/basic-animations.mdx b/docs/tutorials/basic-animations.mdx index 1a9ea6bd62..ffca41a6e3 100644 --- a/docs/tutorials/basic-animations.mdx +++ b/docs/tutorials/basic-animations.mdx @@ -66,7 +66,6 @@ function MyAnimatedBox() { ```jsx useFrame(({ clock }) => { - const a = clock.getElapsedTime() myMesh.current.rotation.x = clock.getElapsedTime() }) ```