Skip to content

Commit 9d38b0c

Browse files
authored
Update App.tsx
1 parent 5bf5d37 commit 9d38b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo-react/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export default function App () {
5959

6060
const destroy = () => {
6161
console.log('Instance', game?.instance)
62-
game?.instance?.destroy(true)
6362
setInitialize(false)
63+
setGame(undefined)
6464
}
6565

6666
useEffect(() => {

0 commit comments

Comments
 (0)