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

Prevent page reload after comment and reply submit - Frontend #7

Open
madhavgupta211 opened this issue Aug 23, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@madhavgupta211
Copy link
Collaborator

At Present, after posting comment data to the server, the page reloads to pull appended comments using componentDidMount.
Create a proper state update function, which triggers a re-render on comment post. Another approach would be to manually append the state after sending the get query, eliminating the need to fetch data again

@madhavgupta211 madhavgupta211 added the bug Something isn't working label Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant