Skip to content

Commit

Permalink
golf
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 29, 2022
1 parent 1415dd4 commit 8441330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diff/index.js
Expand Up @@ -110,8 +110,8 @@ export function diff(
oldProps = c.props;
oldState = c.state;

if (c._stateCallbacks.length) {
c._renderCallbacks.push(...c._stateCallbacks);
for (tmp = 0; tmp < c._stateCallbacks.length; tmp++) {
c._renderCallbacks.push(c._stateCallbacks[tmp]);
c._stateCallbacks = [];
}

Expand Down
1 change: 1 addition & 0 deletions test/browser/lifecycles/componentDidUpdate.test.js
Expand Up @@ -404,6 +404,7 @@ describe('Lifecycle methods', () => {
}

componentDidMount() {
// eslint-disable-next-line
this.setState({ show: true });
}

Expand Down

0 comments on commit 8441330

Please sign in to comment.