Skip to content

Commit 0004e74

Browse files
committed
chore: add comment for r3f addEffect
1 parent d9f33fc commit 0004e74

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

targets/three/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"three": ">=0.126"
3939
},
4040
"devDependencies": {
41-
"@react-three/fiber": "6.0.0-alpha.15",
41+
"@react-three/fiber": "^6.2.2",
4242
"@types/three": "^0.126.1",
4343
"three": "^0.126.1"
4444
}

targets/three/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Globals.assign({
1414
})
1515

1616
// Let r3f drive the frameloop.
17+
// @ts-expect-error r3f expects boolean returned, boolean does nothing.
1718
addEffect(() => {
1819
raf.advance()
19-
return true
2020
})
2121

2222
const host = createHost(primitives, {

yarn.lock

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,22 +1737,6 @@
17371737
pirates "^4.0.1"
17381738
source-map-support "^0.5.16"
17391739

1740-
"@react-three/[email protected]":
1741-
version "6.0.0-alpha.15"
1742-
resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-6.0.0-alpha.15.tgz#a8b70606147afe54d201c55be27fe8357d6e141b"
1743-
integrity sha512-PUmpOTQBf+wbaTw5gfiJ6foy80z2mc2ZJVLY1GjDImJRuv9IGiPO7P0QEN/UH/ZFjmr/bdqXVFIU29zF4uI2zw==
1744-
dependencies:
1745-
"@babel/runtime" "^7.13.10"
1746-
react-merge-refs "^1.1.0"
1747-
react-reconciler "^0.26.2"
1748-
react-three-fiber "0.0.0-deprecated"
1749-
react-use-measure "^2.0.4"
1750-
resize-observer-polyfill "^1.5.1"
1751-
scheduler "^0.20.2"
1752-
use-asset "^1.0.4"
1753-
utility-types "^3.10.0"
1754-
zustand "^3.3.3"
1755-
17561740
"@react-three/fiber@^6.2.2":
17571741
version "6.2.2"
17581742
resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-6.2.2.tgz#bced876201cb136e91d5b0891f31e5c740e1537c"
@@ -8997,7 +8981,7 @@ zdog@~1.0.0:
89978981
resolved "https://registry.yarnpkg.com/zdog/-/zdog-1.0.2.tgz#f2a64a727ff0c3d1a067083124e652abcb392a15"
89988982
integrity sha512-QjLJ5G5H9X4wowICh8Gx7EC4D738qtspaEr6JnUwXcbZ5bDwgHWG/Q3099Lj91mrFODKL3V/ob8VWZUdXr1YoA==
89998983

9000-
zustand@^3.3.3, zustand@^3.5.1:
8984+
zustand@^3.5.1:
90018985
version "3.5.2"
90028986
resolved "https://registry.yarnpkg.com/zustand/-/zustand-3.5.2.tgz#cf162a8bd1d86475bf308bc856c4d02ff13fd53c"
90038987
integrity sha512-HUCQI9O77/D/zvoWPNv4dwLriiiY2xtEqnQ0TVY8uaPjmOHls04Okd0w3sWUE9Ex2LaYlSk11DbPPIOZ6shEWg==

0 commit comments

Comments
 (0)