Tracking pending state of single item during mutation?
I'm using inserts and want to disable certain actions (like delete) while an item is still being persisted.
I can't find out how to get the
Currently, I'm manually tracking pending IDs with external state and this feels quite tedious
This works but feels verbose for something the library must already track internally. Also this won't work on a global level if I want to check a pending state in another branch of the JSX tree.
Is there a built-in way to check if an item has a pending transaction? Something like:
Any good ideas out there?
I can't find out how to get the
isPending in a sane way.Currently, I'm manually tracking pending IDs with external state and this feels quite tedious
This works but feels verbose for something the library must already track internally. Also this won't work on a global level if I want to check a pending state in another branch of the JSX tree.
Is there a built-in way to check if an item has a pending transaction? Something like:
Any good ideas out there?