Skip to content

Commit d544521

Browse files
Update changelog with render arg info
1 parent 24efa8a commit d544521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Breaking change - fix nullability/typings for `ReactDom.findDomNode` and `ReactD
1111

1212
The previous typings were incorrect:
1313
- `findDOMNode` returns null in many cases, but its return type was incorrectly non-nullable.
14-
- `render` returns null for some cases (function components, `null`), `Element` for DOM components, and `CharacterData` for strings and numbers, but was incorrectly typed as non-nullable `ReactComponent`.
14+
- `render` returns null for some cases (function components, `null`), `Element` for DOM components, and `CharacterData` for strings and numbers, but was incorrectly typed as non-nullable `ReactComponent`. The `component` argument also accepts `null` and other "ReactNode" arguments to rendered, but its type is incorrectly non-nullable and restricted to just `ReactElement`.
1515

1616
These typings only affect these APIs under the `ReactDom` class in package:react/react_client/react_interop.dart, and not the top-level `Function`-typed `findDOMNode` and `render` APIs exported from `package:react/react_dom.dart`, which most consumers use.
1717

0 commit comments

Comments
 (0)