From b4151d85b3ba0f57e9fab48ec88f5e57e4d0b544 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Mon, 12 Oct 2020 21:31:16 +1100 Subject: [PATCH] fix: do not derive cache key if component is static, fixes #629 (#630) --- packages/component/src/createLoadable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/component/src/createLoadable.js b/packages/component/src/createLoadable.js index 0989dc7a..a28f6b3e 100644 --- a/packages/component/src/createLoadable.js +++ b/packages/component/src/createLoadable.js @@ -56,7 +56,7 @@ function createLoadable({ if (ctor.resolve) { return ctor.resolve(props) } - return null + return "static" } /** @@ -181,7 +181,7 @@ function createLoadable({ * @returns {Component|string} */ getCacheKey() { - return getCacheKey(this.props) || JSON.stringify(this.props) + return getCacheKey(this.props) } /**