Skip to content

Commit

Permalink
Core Data: Remove entity config '__experimentalNoFetch' flag checks (W…
Browse files Browse the repository at this point in the history
…ordPress#63303)


Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored and carstingaxion committed Jul 18, 2024
1 parent 8763d16 commit 36dfa64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const deleteEntityRecord =
);
let error;
let deletedRecord = false;
if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}

Expand Down Expand Up @@ -507,7 +507,7 @@ export const saveEntityRecord =
const entityConfig = configs.find(
( config ) => config.kind === kind && config.name === name
);
if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}
const entityIdKey = entityConfig.key || DEFAULT_ENTITY_KEY;
Expand Down
8 changes: 4 additions & 4 deletions packages/core-data/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const getEntityRecord =
const entityConfig = configs.find(
( config ) => config.name === name && config.kind === kind
);
if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}

Expand Down Expand Up @@ -198,7 +198,7 @@ export const getEntityRecords =
const entityConfig = configs.find(
( config ) => config.name === name && config.kind === kind
);
if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}

Expand Down Expand Up @@ -742,7 +742,7 @@ export const getRevisions =
( config ) => config.name === name && config.kind === kind
);

if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}

Expand Down Expand Up @@ -867,7 +867,7 @@ export const getRevision =
( config ) => config.name === name && config.kind === kind
);

if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) {
if ( ! entityConfig ) {
return;
}

Expand Down

0 comments on commit 36dfa64

Please sign in to comment.