From 7ebd90c2c36bcea3081a353e0e20542cf69c64cd Mon Sep 17 00:00:00 2001 From: shawn wang Date: Sun, 21 Oct 2018 14:16:44 -0400 Subject: [PATCH] [minor bugfix] fix minor bug with handleReset in suspense fixture (#13843) * fix minor bug with handleReset in suspense fixture otherwise resetting the cache in debugger throws an error reported here https://www.reddit.com/r/reactjs/comments/9n9nfo/react_166_canary/ * fix singlequote/doublequote * switch to performance.now() --- fixtures/unstable-async/suspense/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures/unstable-async/suspense/src/index.js b/fixtures/unstable-async/suspense/src/index.js index d6287c50da..12a77f9078 100644 --- a/fixtures/unstable-async/suspense/src/index.js +++ b/fixtures/unstable-async/suspense/src/index.js @@ -65,7 +65,7 @@ class Debugger extends PureComponent { } handleReset = () => { - trace('Clear cache', () => { + trace('Clear cache', performance.now(), () => { cache.invalidate(); this.setState(state => ({ requests: {},