Skip to content

Commit

Permalink
fix: do not derive cache key if component is static, fixes #629
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Sep 16, 2020
1 parent 94e0c42 commit 79aa01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/component/src/createLoadable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function createLoadable({
if (ctor.resolve) {
return ctor.resolve(props)
}
return null
return "static"
}

/**
Expand Down Expand Up @@ -181,7 +181,7 @@ function createLoadable({
* @returns {Component|string}
*/
getCacheKey() {
return getCacheKey(this.props) || JSON.stringify(this.props)
return getCacheKey(this.props)
}

/**
Expand Down

0 comments on commit 79aa01a

Please sign in to comment.