Skip to content

Commit

Permalink
Update note about migrator companion codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneyjodon-wk committed Oct 15, 2024
1 parent f15aa02 commit baacf1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/null_safety/null_safe_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ dart pub global run over_react_codemod:null_safety_migrator_companion --yes-to-a
```

This codemod will:
- Add nullability hints to props/state that are defaulted/initialized in class components.
- Add nullability hints to state mixin/class fields
- These hints will cause defaulted/initialized values to be migrated as "late required".
See our [prop requiredness and nullability](#prop-requiredness-and-nullability) docs for more details on whether you should keep them required following the migration.
- All non-initialized state fields will have optional nullable hints.
- Add nullable hints for callback ref types.

#### Required props codemod

Expand Down

0 comments on commit baacf1e

Please sign in to comment.