@contentful/field-editor-rich-text 2.3.15 → 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 CHANGED
@@ -3,6 +3,22 @@
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
+
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)
13
+
14
+ ### Bug Fixes
15
+
16
+ - version compare webapp ([#1210](https://github.com/contentful/field-editors/issues/1210)) ([bbe0882](https://github.com/contentful/field-editors/commit/bbe0882f15d771dc713c688f8ba4df0be8c13102))
17
+
18
+ ## [2.3.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.15...@contentful/field-editor-rich-text@2.3.16) (2022-08-09)
19
+
20
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
21
+
6
22
  ## [2.3.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.14...@contentful/field-editor-rich-text@2.3.15) (2022-08-09)
7
23
 
8
24
  **Note:** Version bump only for package @contentful/field-editor-rich-text
@@ -2168,6 +2168,10 @@ function useFetchedEntity(_ref) {
2168
2168
 
2169
2169
 
2170
2170
  React.useEffect(function () {
2171
+ if (!store) {
2172
+ return;
2173
+ }
2174
+
2171
2175
  var newValue = store[id];
2172
2176
 
2173
2177
  if (!areEqual(entity, newValue)) {
@@ -2176,6 +2180,10 @@ function useFetchedEntity(_ref) {
2176
2180
  }, [store, entity, id]); // Fetch the entity if needed
2177
2181
 
2178
2182
  React.useEffect(function () {
2183
+ if (!store) {
2184
+ return;
2185
+ }
2186
+
2179
2187
  (type === 'Entry' ? getEntry : getAsset)(id); // "getEntry" and "getAsset" instances change with every
2180
2188
  // entity store update causing page lag on initial load
2181
2189
  // TODO: consider rewriting useEntities() hook to avoid that happening in