From 73b91d370043dd768230a480099e82d0c458d6d0 Mon Sep 17 00:00:00 2001 From: Noritaka Kobayashi Date: Sat, 28 Jun 2025 22:44:50 +0900 Subject: [PATCH] refactor: remove unused import in example & fix typo in tests (#3161) --- examples/demo/src/components/Scene.jsx | 2 +- tests/types.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/demo/src/components/Scene.jsx b/examples/demo/src/components/Scene.jsx index 7255b2bc..03dd5a87 100644 --- a/examples/demo/src/components/Scene.jsx +++ b/examples/demo/src/components/Scene.jsx @@ -1,5 +1,5 @@ import { Mesh, PlaneGeometry, Group, Vector3, MathUtils } from 'three' -import { memo, useRef, useState, useLayoutEffect } from 'react' +import { useRef, useState, useLayoutEffect } from 'react' import { createRoot, events, extend, useFrame } from '@react-three/fiber' import { Plane, useAspect, useTexture } from '@react-three/drei' import { diff --git a/tests/types.test.tsx b/tests/types.test.tsx index 08c98a12..b30dd415 100644 --- a/tests/types.test.tsx +++ b/tests/types.test.tsx @@ -42,7 +42,7 @@ it('can use exposed types', () => { num: 1, numGet: () => get().num, numGetState: () => { - // TypeScript can't get the type of storeApi when it trys to enforce the signature of numGetState. + // TypeScript can't get the type of storeApi when it tries to enforce the signature of numGetState. // Need to explicitly state the type of storeApi.getState().num or storeApi type will be type 'any'. const result: number = storeApi.getState().num return result