Skip to content

Commit

Permalink
fix: blackflag demo
Browse files Browse the repository at this point in the history
So it works with: pmndrs/react-spring#615
  • Loading branch information
aleclarson committed Apr 9, 2019
1 parent 92b79fb commit 0f0ed9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demos/hooks/blackflag/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const interp = i => r =>
export default function App() {
const props = useSpring({
to: async next => {
while (1) await next({ radians: 2 * Math.PI })
while (1) {
await next({ radians: 2 * Math.PI, reset: true })
}
},
from: { radians: 0 },
reset: true,
Expand Down

0 comments on commit 0f0ed9b

Please sign in to comment.