This repository was archived by the owner on Feb 16, 2024. It is now read-only.
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
[Codemod:next/13/replace-next-head] Invalid codemod output #353
Open
Description
Codemod: next/13/replace-next-head
1. Code before transformation (Input for codemod)
```typescript ```
2. Expected code after transformation (Desired output of codemod)
```typescript // paste code here ```
3. Faulty code obtained after running the current version of the codemod (Actual output of codemod)
```typescript const { t, isLocaleReady } = useLocale(); ```
Additional context
Metadata dependencies such as react hooks, cannot exist outside of react component.