Skip to content

Make follow up request to get HTML to swap in #3032

Answered by Telroshan
mfonda asked this question in Q&A
Discussion options

You must be logged in to vote

since the POST endpoint does not and I need to make a follow up GET request to get the HTML

May I ask why? The benefit you get from modifying your backend endpoint is that you would solve the usecase in a single roundtrip to the server. The issue with the setup you're describing here, is that you'll have your client wait for the server answer to then fetch the updated question, wait again for the server answer before updating the UI, when the UI could be updated along the first response. As commonly, the longest delay is the roundtrip to the server, you'd be basically doubling the latency of your user action.

From what you're describing, it looks like you're not sending anything in the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mfonda
Comment options

Answer selected by mfonda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants