Skip to content

Commit

Permalink
Core Data: Use meta-store actions for status resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 12, 2024
1 parent 6c3caac commit e86c0bc
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions packages/core-data/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,10 @@ export const getEntityRecords =
.filter( ( record ) => record?.[ key ] )
.map( ( record ) => [ kind, name, record[ key ] ] );

dispatch( {
type: 'START_RESOLUTIONS',
selectorName: 'getEntityRecord',
args: resolutionsArgs,
} );
dispatch( {
type: 'FINISH_RESOLUTIONS',
selectorName: 'getEntityRecord',
args: resolutionsArgs,
} );
dispatch.startResolutions(
'getEntityRecord',
resolutionsArgs
);
}

dispatch.__unstableReleaseStoreLock( lock );
Expand Down Expand Up @@ -856,16 +850,8 @@ export const getRevisions =
record[ key ],
] );

dispatch( {
type: 'START_RESOLUTIONS',
selectorName: 'getRevision',
args: resolutionsArgs,
} );
dispatch( {
type: 'FINISH_RESOLUTIONS',
selectorName: 'getRevision',
args: resolutionsArgs,
} );
dispatch.startResolutions( 'getRevision', resolutionsArgs );
dispatch.startResolutions( 'getRevision', resolutionsArgs );
}
}
};
Expand Down

0 comments on commit e86c0bc

Please sign in to comment.