platforms icon indicating copy to clipboard operation
platforms copied to clipboard

Caching bug between two tabs

Open wuzhuzhu opened this issue 1 year ago • 1 comments

  1. visit official demo, login and create a site.
  2. click the created site and create a post, publish it
  3. back to all posts list, open the post list page in another chrome tab called "Tab 2"
  4. Edit the post at Tab 1, eg: change title, unpublish it, auto save. back to post list, the post preview shows changed content.
  5. [!!!BUG!!!]Switch to Tab 2, click links on page navigate to another route : /Analytics, /settings, /site list... then navi back to the post list, the post preview still shows the old post status before step 4!
  6. hard refresh Tab 2 by browser, the content goes correct as expect.

Seems official template of vercel still has the problem with soft navigation and cache. If use fetch instead of prisma client, the bug goes worse that you don't need 2 tabs to find this bug.

wuzhuzhu avatar Jul 11 '23 10:07 wuzhuzhu

I found the same error. Any solutions to this?

Link-Ma avatar May 14 '24 01:05 Link-Ma