twenty
twenty copied to clipboard
Optimistic rendering on metadata queries
Bug Description
Similarly to #5278 > When you delete an object, the api takes long, the menu stills showing and if you mistakenly delete again, you get a “Error: ApolloError: Object does not exist”
error.
Same when you want to deactivate an object, it takes a while → this doesn’t show an error, but we should prevent it from happening
Steps to reproduce
https://www.loom.com/share/be7a084b3f914869b0183ff2944a2596?sid=3ee996b4-4128-40ef-9798-17c7a92c7655
Expected behavior
- We should prevent to display the menu containing action buttons until the api call fullfils
- We should cut off the loading time on object deletion
- [suggestion]: add a confirmation modal before deleting the object, since this is a permanent action to prevent inadvertent deletions of object
@FelixMalfait feel free to update the issue, based on the suggestion above
Related issues
- #5278