From 0f0ed9bc7fc36ac3e2761ab42b4ce00f755bdfdd Mon Sep 17 00:00:00 2001 From: Alec Larson Date: Tue, 9 Apr 2019 10:45:10 -0400 Subject: [PATCH] fix: blackflag demo So it works with: https://github.com/react-spring/react-spring/pull/615 --- demos/hooks/blackflag/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,