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

GOTH-489 Author bylines wrong when reloading page after publishing new story #220

Merged
merged 1 commit into from Dec 14, 2022

Conversation

walsh9
Copy link
Contributor

@walsh9 walsh9 commented Dec 14, 2022

This is a weird one. Not sure why data appears to be persisting in nuxt across reloads or how author data is getting assigned to the wrong stories, but the issues appear to have something to do with nuxt's payload caching. The closest thing to documentation I can find for this feature appears here: nuxt/framework#3985

setting initalCache to false with useFetch appears to solve the problem. Not sure if this will cause a noticable performance hit or extra traffic but I don't expect it to be an issue.

Note: This flag has been removed in the 3.0 release and the way the caching works has change, so updating to stable may also just fix our issues, but for now this seems to work. When we update we should try to remember to remove this flag from our requests though, since it does nothing in nuxt 3.0.
nuxt/framework#8885

@squash-labs
Copy link

squash-labs bot commented Dec 14, 2022

Manage this branch in Squash

Test this branch here: https://mwalshgoth-489-68ftm.squash.io

@walsh9 walsh9 merged commit c6ceda1 into main Dec 14, 2022
@walsh9 walsh9 deleted the mwalsh/GOTH-489 branch December 14, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants