diff --git a/demos/hooks/blackflag/index.js b/demos/hooks/blackflag/index.js index 337a8ab..04733a7 100644 --- a/demos/hooks/blackflag/index.js +++ b/demos/hooks/blackflag/index.js @@ -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,