Skip to content

Commit

Permalink
fix: use === instead of Object.is
Browse files Browse the repository at this point in the history
Closes #371
  • Loading branch information
gregberge committed Jul 15, 2019
1 parent 36708e6 commit c88cd82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/component/src/createLoadable.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function createLoadable({ resolve = identity, render, onLoad }) {

componentDidUpdate(prevProps, prevState) {
// Component is reloaded if the cacheKey has changed
if (!Object.is(prevState.cacheKey, this.state.cacheKey)) {
if (prevState.cacheKey !== this.state.cacheKey) {
this.promise = null
this.loadAsync()
}
Expand Down

0 comments on commit c88cd82

Please sign in to comment.