adarshanand67 / ShareMe

ShareMe Social Media Website where you document the happenings of life
https://share-me-web.netlify.app/
MIT License
9 stars 21 forks source link

feat:Added delete functionality for pin #42

Closed shivam1317 closed 1 year ago

shivam1317 commented 1 year ago

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

adarshanand67 commented 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

adarshanand67 commented 1 year ago

Rest the idea is good, maybe instead of const [deleted, setDeleted] = useState(false); store in localstorage

shivam1317 commented 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

it will appear again until it gets deleted from backend and as i said, backend is taking some time to delete the post.