Posts getting duplicated in Data view after page reload
kjmalek opened this issue · comments
Describe the bug
When viewing posts in the Data view, post are getting duplicated after reloading the page. This behavior does not occur consistently, but it does appear to be related to pagination. Duplication occurs when the pagination parameter is added to the URL (/feed?page=1).
To Reproduce
- Setup a new Ushahidi deployment using the ushahidi/platform-release repository
- Create a new post
- View posts in Data view
- Reload page or navigate to /feed?page=1
Expected behavior
Posts should not be duplicated after reloading the page.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Firefox
- Version: 115.8.0esr
Can I work on this? I'm from Outreachy
Hi @kjmalek I am Mahalakshmi from outreachy intern2024. I am looking forward to contributing to this project. can I work on this issue?
Hello @kjmalek, both backend and frontend setups are complete. I've attempted to replicate the reported bug but have been unsuccessful on my end. Notably, I encountered an issue creating a post, prompting a switch to the production backend API at https://mzima-dev-api.staging.ush.zone/ for testing. This seems to be currently performing as anticipated.