Expose isSavingEntityRecord
and isDeletingEntityRecord
when using useEntityRecord
#56471
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Package] Core data
/packages/core-data
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently
useEntityRecord
exposes almost all of the actions / info you might need relating to the entity record, such asrecord
,save
,edit
,isResolving
,hasResolved
etc, but to find out if asave
is in progress (to show loaders for example), we have to make a seperateselect
call with the same paramaters to find out if its saving.The navigation menu is doing it here:
What is your proposed solution?
It would be nice if
useEntityRecord
also exposedisSavingEntityRecord
andisDeletingEntityRecord
as something likeisSaving
andisDeleting
.Assuming
useEntityRecord
is supposed to be an easy way to access actions and data about an entity record, then it seems these are the last two pieces of information missing.The text was updated successfully, but these errors were encountered: