@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.
@@ -2153,9 +2153,7 @@ function useFetchedEntity(_ref) {
2153
2153
  getEntry = _useEntities.getEntry,
2154
2154
  getAsset = _useEntities.getAsset;
2155
2155
 
2156
- var store = useMemo(function () {
2157
- return type === 'Entry' ? entries : assets;
2158
- }, [assets, entries, type]);
2156
+ var store = type === 'Entry' ? entries : assets;
2159
2157
 
2160
2158
  var _useState = useState(store == null ? void 0 : store[id]),
2161
2159
  entity = _useState[0],
@@ -2184,7 +2182,7 @@ function useFetchedEntity(_ref) {
2184
2182
  // TODO: consider rewriting useEntities() hook to avoid that happening in
2185
2183
  // first place.
2186
2184
  // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: explain this disable
2187
- }, [type, id, store]);
2185
+ }, [type, id]);
2188
2186
  useEffect(function () {
2189
2187
  if (entity) {
2190
2188
  onEntityFetchComplete == null ? void 0 : onEntityFetchComplete();