@contentful/field-editor-rich-text 2.3.19 → 2.3.20

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,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.20](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.19...@contentful/field-editor-rich-text@2.3.20) (2022-08-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - rollback change of deps in useFetchedEntity ([#1213](https://github.com/contentful/field-editors/issues/1213)) ([c12e6ea](https://github.com/contentful/field-editors/commit/c12e6eae473e340b1065bb296c093e5aea6e0adc))
11
+
6
12
  ## [2.3.19](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.3.18...@contentful/field-editor-rich-text@2.3.19) (2022-08-10)
7
13
 
8
14
  ### Bug Fixes
@@ -2160,9 +2160,7 @@ function useFetchedEntity(_ref) {
2160
2160
  getEntry = _useEntities.getEntry,
2161
2161
  getAsset = _useEntities.getAsset;
2162
2162
 
2163
- var store = React.useMemo(function () {
2164
- return type === 'Entry' ? entries : assets;
2165
- }, [assets, entries, type]);
2163
+ var store = type === 'Entry' ? entries : assets;
2166
2164
 
2167
2165
  var _useState = React.useState(store == null ? void 0 : store[id]),
2168
2166
  entity = _useState[0],
@@ -2191,7 +2189,7 @@ function useFetchedEntity(_ref) {
2191
2189
  // TODO: consider rewriting useEntities() hook to avoid that happening in
2192
2190
  // first place.
2193
2191
  // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: explain this disable
2194
- }, [type, id, store]);
2192
+ }, [type, id]);
2195
2193
  React.useEffect(function () {
2196
2194
  if (entity) {
2197
2195
  onEntityFetchComplete == null ? void 0 : onEntityFetchComplete();