Closed ShittyAdvice closed 2 months ago
Thanks, we'll look into it.
To add to this: It seems like if you've pressed recache story
once after that it stays up to date with the replies automatically and you don't need to press it every time, just once after an article is initially created.
We made a temporary work around that we do a cacheStory
call after our createStory
call, but I'd expect this to not be needed and it feels like something is missing on both existing and new articles where recache
has never been pressed
This is fixed now, thanks!
Expected behavior: When I 'deeplink' to a specific comment I see the single conversation thread and I expect to see all the replies to the linked comment. When a reply to a comment is created I'd expect that comment or stories cache to get invalidated
Actual behavior: The replies are not shown. Only the parent comments are shown. The html element for
<PermaLinkViewContainer>
is empty and the graphql responds with an empty list for the replies.After recaching the whole article these replies are now shown when viewing a single conversation thread. It seems like the replies are being cached initially but never updated when there is a reply even though on the
main thread
these replies were already visible without recaching the article.Question: Why can I see all the replies on the main thread, but not in a single conversation? Is there a desync in this cache or am I missing something obvious?
Related Issues: No similar issues found
Versions:
Reproduction
DATA_CACHE
DATA_CACHE
and refresh the page. You will see the parent comment, but no replies.