From 8c6ea57ac2e8ed62236957a5b992780d7854fe4f Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 9 Jul 2024 17:18:15 +0400 Subject: [PATCH] Core Data: Remove entity config '__experimentalNoFetch' flag checks --- packages/core-data/src/actions.js | 4 ++-- packages/core-data/src/resolvers.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core-data/src/actions.js b/packages/core-data/src/actions.js index 53ab935d868a37..6fca867ecaa6a5 100644 --- a/packages/core-data/src/actions.js +++ b/packages/core-data/src/actions.js @@ -292,7 +292,7 @@ export const deleteEntityRecord = ); let error; let deletedRecord = false; - if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) { + if ( ! entityConfig ) { return; } @@ -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; diff --git a/packages/core-data/src/resolvers.js b/packages/core-data/src/resolvers.js index 5eb6fd8642c75e..bff8c8cb0f6780 100644 --- a/packages/core-data/src/resolvers.js +++ b/packages/core-data/src/resolvers.js @@ -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; } @@ -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; } @@ -742,7 +742,7 @@ export const getRevisions = ( config ) => config.name === name && config.kind === kind ); - if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) { + if ( ! entityConfig ) { return; } @@ -867,7 +867,7 @@ export const getRevision = ( config ) => config.name === name && config.kind === kind ); - if ( ! entityConfig || entityConfig?.__experimentalNoFetch ) { + if ( ! entityConfig ) { return; }