You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not something you need to handle now, just more of a learning point for the future. When making calls to the server, you should also check for errors/failures. That way you can show a nice toast/popup message if for some reason the delete fails.
Another learning point, you do not need to reload your all your comments on delete. You could potential just verify the response was successful and use javascript to remove that one comment or all comments. This makes your website snappier and prevents excess calls to your server/database.
Again, you don't need to make these changes, I just wanted to give you some advice on what to research if you wanted. to improve your current implementation.
Not something you need to handle now, just more of a learning point for the future. When making calls to the server, you should also check for errors/failures. That way you can show a nice toast/popup message if for some reason the delete fails.
Another learning point, you do not need to reload your all your comments on delete. You could potential just verify the response was successful and use javascript to remove that one comment or all comments. This makes your website snappier and prevents excess calls to your server/database.
Again, you don't need to make these changes, I just wanted to give you some advice on what to research if you wanted. to improve your current implementation.
Originally posted by @Google-JM in #14
The text was updated successfully, but these errors were encountered: