Closed shivam1317 closed 1 year ago
Issue - When the user refreshes after deleting then the deleted post appears again! Feat - also when user presses delete show a toast at bottom
Rest the idea is good, maybe instead of const [deleted, setDeleted] = useState(false); store in localstorage
Issue - When the user refreshes after deleting then the deleted post appears again! Feat - also when user presses delete show a toast at bottom
it will appear again until it gets deleted from backend and as i said, backend is taking some time to delete the post.
https://user-images.githubusercontent.com/70281451/219313224-176f75d5-8e7a-443d-9fc3-a2a7e4da5b6d.mp4
backend takes 5-10 seconds to delete it so i just made it
hidden
when user clicks on delete icon instead of refreshing the whole page.this fixes #40