Skip to content

Commit

Permalink
fix: do not derive cache key if component is static, fixes gregberge#629
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Oct 12, 2020
1 parent 9b466be commit c928e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 c928e66

Please sign in to comment.