Skip to content

Commit

Permalink
[minor bugfix] fix minor bug with handleReset in suspense fixture (fa…
Browse files Browse the repository at this point in the history
…cebook#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()
  • Loading branch information
swyxio authored and nhunzaker committed Oct 21, 2018
1 parent 420001c commit 7ebd90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixtures/unstable-async/suspense/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Debugger extends PureComponent {
}

handleReset = () => {
trace('Clear cache', () => {
trace('Clear cache', performance.now(), () => {
cache.invalidate();
this.setState(state => ({
requests: {},
Expand Down

0 comments on commit 7ebd90c

Please sign in to comment.