Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core Data: Remove entity config '__experimentalNoFetch' flag checks #63303

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading