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

New DB entries not displaying immediately #41

Open
bobbysebolao opened this issue Aug 29, 2019 · 0 comments
Open

New DB entries not displaying immediately #41

bobbysebolao opened this issue Aug 29, 2019 · 0 comments
Assignees
Labels

Comments

@bobbysebolao
Copy link

After you submit a new interest to the database and are redirected to /content, you have to manually refresh the page before it will display the new entry. This is happening because, in your POST route for /content, you are redirecting users to the new page before the data has finished inserting into your database:

Screen Shot 2019-08-29 at 11 02 13

Can you think of a way to make these operations happen synchronously (one after the other)? :)

promises

@DanaEFalah DanaEFalah self-assigned this Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants