Skip to content

Commit f58e01c

Browse files
committed
fix: blackflag demo
So it works with: pmndrs/react-spring#615
1 parent 665fe01 commit f58e01c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demos/hooks/blackflag/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const interp = i => r =>
1010
export default function App() {
1111
const props = useSpring({
1212
to: async next => {
13-
while (1) await next({ radians: 2 * Math.PI })
13+
while (1) {
14+
await next({ radians: 2 * Math.PI, reset: true })
15+
}
1416
},
1517
from: { radians: 0 },
1618
reset: true,

0 commit comments

Comments
 (0)