-
Notifications
You must be signed in to change notification settings - Fork 29.8k
docs: revalidateTag requires second argument #85284
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
Conversation
|
I think we're fixing the wrong thing here. Instead of changing the docs to match the code, shouldn't we fix the code to match the docs? Making profile required is a breaking change that forces many developers to update dozens or hundreds of calls. Personally I have 79 revalidateTag() calls, and the original issue mentioned 150. Most people will just set it to 'max' anyway since it's the recommended value. Can we make profile optional with 'max' as default instead? This would save everyone a lot of unnecessary work. |
Yes but no, changing the profile to max also changes the entire behavior of what revalidateTag initially did. |
My point wasn't really about which default value to use. I said "max" because it's the recommended value in the docs, but that's not the main thing. But let me ask you this: are you actually okay with this statement being true?
|
|
I think the intention here has been to get projects using TS to make a choice, to add the second argument where needed, switch to I am actually not sure how I'll tackle this one. The note about supporting only one argument likely needs to be re-worked or presented in a different way. This contradiction is a bit of a headache, but I think the docs should present the |
No, I think the second argument should always be required in Next16 Why is it hard to replace all to Setting the default to |
Closes: #85281