@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.3.18](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.17...@contentful/field-editor-rich-text@2.3.18) (2022-08-10)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- check store in entity fetch ([#1211](https://github.com/contentful/field-editors/issues/1211)) ([3ddc0b2](https://github.com/contentful/field-editors/commit/3ddc0b2d3ffc2e2146cb8f0ee07d540cb875b717))
|
|
11
|
+
|
|
6
12
|
## [2.3.17](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.16...@contentful/field-editor-rich-text@2.3.17) (2022-08-09)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -2180,6 +2180,10 @@ function useFetchedEntity(_ref) {
|
|
|
2180
2180
|
}, [store, entity, id]); // Fetch the entity if needed
|
|
2181
2181
|
|
|
2182
2182
|
React.useEffect(function () {
|
|
2183
|
+
if (!store) {
|
|
2184
|
+
return;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2183
2187
|
(type === 'Entry' ? getEntry : getAsset)(id); // "getEntry" and "getAsset" instances change with every
|
|
2184
2188
|
// entity store update causing page lag on initial load
|
|
2185
2189
|
// TODO: consider rewriting useEntities() hook to avoid that happening in
|