@contentful/field-editor-rich-text 2.3.17 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/field-editor-rich-text.cjs.development.js +4 -0
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +4 -0
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -2173,6 +2173,10 @@ function useFetchedEntity(_ref) {
|
|
|
2173
2173
|
}, [store, entity, id]); // Fetch the entity if needed
|
|
2174
2174
|
|
|
2175
2175
|
useEffect(function () {
|
|
2176
|
+
if (!store) {
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2176
2180
|
(type === 'Entry' ? getEntry : getAsset)(id); // "getEntry" and "getAsset" instances change with every
|
|
2177
2181
|
// entity store update causing page lag on initial load
|
|
2178
2182
|
// TODO: consider rewriting useEntities() hook to avoid that happening in
|