Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(cacheTag): remove unused
cacheLife
import and add missing `swi…
…tcher` (#72217) This PR fixes two issues on the [cacheTag](https://nextjs.org/docs/canary/app/api-reference/functions/cacheTag) documentation page: 1. Remove the unused `unstable_cacheLife` import in the TypeScript codeblock of [Creating tags from external data](https://nextjs.org/docs/canary/app/api-reference/functions/cacheTag#creating-tags-from-external-data) section: ![image](https://github.com/user-attachments/assets/db401635-f07b-4e48-bd39-9a21adedce41) 2. Missing `switcher` for TS codeblock in [Creating tags from external data](https://nextjs.org/docs/canary/app/api-reference/functions/cacheTag#creating-tags-from-external-data) and [Invalidating tagged cache](https://nextjs.org/docs/canary/app/api-reference/functions/cacheTag#invalidating-tagged-cache) sections. We already have the corresponding JS codeblock in the Markdown. ![image](https://github.com/user-attachments/assets/33a36ac4-d936-47dd-8e96-df9e67366680) ![image](https://github.com/user-attachments/assets/2f91f7de-f440-439c-9cce-1749e9645516) Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
- Loading branch information