Skip to content

Commit c88cd82

Browse files
committed
fix: use === instead of Object.is
Closes #371
1 parent 36708e6 commit c88cd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/component/src/createLoadable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function createLoadable({ resolve = identity, render, onLoad }) {
9797

9898
componentDidUpdate(prevProps, prevState) {
9999
// Component is reloaded if the cacheKey has changed
100-
if (!Object.is(prevState.cacheKey, this.state.cacheKey)) {
100+
if (prevState.cacheKey !== this.state.cacheKey) {
101101
this.promise = null
102102
this.loadAsync()
103103
}

0 commit comments

Comments
 (0)