next.js
next.js copied to clipboard
Docs: align fetch API examples to v15 defaults
Improving Documentation
- [x] Run
pnpm prettier-fixto fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide
What
This PR changes code comments in the fetch API documentation examples to avoid confusion after the caching defaults changes brought by version 15.
Allow CI Workflow Run
- [ ] approve CI run for commit: 212ec13580637de54aea72376ed8366984f8b00a
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer
closing because canary is now ahead with changes to docs that drop any reference to flipping of cache defaults between v14 and v15