Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The posts are loading themselves twice instead of once. I think it's the useEffect messing something up. #1

Open
Mohd-Muneeb opened this issue Sep 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Mohd-Muneeb
Copy link
Owner

In the Posts, the posts are messing themselves twice, if you see the code I think you will find it. I could use some help making each post load once. My approach at the moment, is to covert it to a set, removing all duplicate posts by the PostID and finally converting it back to an array. Could use your help guys!

@Mohd-Muneeb Mohd-Muneeb added bug Something isn't working help wanted Extra attention is needed labels Sep 13, 2022
@Mohd-Muneeb Mohd-Muneeb self-assigned this Sep 13, 2022
@Airbornharsh
Copy link

Is the issue solved or should I try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants