馃悰 [Bug] Editing comments is not reactive again
Created by: Tirokk
Authored by mattwr18 Closed
馃悰 Bugreport
It seems that we have broken the reactivity of our UpdateComment
functionality again
At the moment, we are just adding the updated Comment
to this.post.comments
, which updates, but does not change the apollo cache and therefore is not updated on the page until a hard refresh.
This is the reason we programmed it to update the apollo cache before the refactor.
Of course, it seemed to have been working when the refactor was merged in, so maybe something else broke it??
On nitro-staging
after comment was updated
Also, on staging, after hard refresh
In dev env., console logging this.post.comments
Steps to reproduce the behavior
- go to the site, reproducible on
alpha
,nitro-staging
, andlocalhost
- type a comment, if you don't have one to edit
- edit a comment
- observe that nothing changed
- refresh the page
- observe that the comment was successfully updated and viewable
Expected behavior
we should have it updated for the user without the need of a hard refresh