mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[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()
This commit is contained in:
committed by
Nathan Hunzaker
parent
420001cb4e
commit
7ebd90c2c3
@@ -65,7 +65,7 @@ class Debugger extends PureComponent {
|
||||
}
|
||||
|
||||
handleReset = () => {
|
||||
trace('Clear cache', () => {
|
||||
trace('Clear cache', performance.now(), () => {
|
||||
cache.invalidate();
|
||||
this.setState(state => ({
|
||||
requests: {},
|
||||
|
||||
Reference in New Issue
Block a user