DEV Community

Discussion on: How to Display the Progress of Promises in JavaScript

jbartusiak profile image
Jakub Bartusiak

I see what you mean, yet consider this.
When you'd delete data from the grid, I'm guessing that happens on the backend, right? Then, a better approach would be to remove the deleted items from the grid locally and notify the user whether the operation was successful or not.
For the second example, consider lazy loading some modules, or using placeholders for components being loaded (like skeletons).

Thread Thread
jrdev_ profile image
Jr. Dev 👨🏾‍💻 Author

I wouldn't say a better approach, but definitely a viable one dependent on the requirements 👍 Thanks for adding your comment though, definitely an alternative approach to consider