Extract the needed portion of code to a new partial to be able to update only the elements needed when a new comment is added keeping UI properly updated.
Extract the needed portion of code to a new partial to be able to update only the elements needed when a new comment is added keeping UI properly updated.