Skip to content

Commit

Permalink
fix: do not derive cache key if component is static, fixes #629 (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Oct 12, 2020
1 parent e882e4d commit b4151d8
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 b4151d8

Please sign in to comment.