[NEXT-1199] only the last call to revalidateTag works in DEV mode #49509
Labels
area: app
App directory (appDir: true)
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Pages Router
Related to Pages Router.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 Binaries: Node: 19.6.0 npm: 9.4.0 Yarn: N/A pnpm: 8.4.0 Relevant packages: next: 13.4.2-canary.3 eslint-config-next: 13.4.1 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Data fetching (gS(S)P, getInitialProps)
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/divine-lake-8pfqub
To Reproduce
Describe the Bug
the two requests have to separate tags "a", and "b".
"/flush" will revalidate both tags
only the last call to
revalidateTag
worksThis only happens in DEV mode, in production it works as expected.
If you introduce a delay between calls, it works even in DEV mode.
Expected Behavior
multiple calls to
revalidateTag
should work in DEV modeWhich browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1199
The text was updated successfully, but these errors were encountered: