diff --git a/fixtures/unstable-async/suspense/src/components/App.js b/fixtures/unstable-async/suspense/src/components/App.js index 6c639487c0..1c8df3c109 100644 --- a/fixtures/unstable-async/suspense/src/components/App.js +++ b/fixtures/unstable-async/suspense/src/components/App.js @@ -21,7 +21,7 @@ export default class App extends PureComponent { componentDidUpdate(prevProps, prevState) { if ( prevState.showDetail !== this.state.showDetail || - prevState.currentId !== this.state.currentId + (prevState.currentId !== this.state.currentId && this.state.showDetail) ) { window.scrollTo(0, 0); }