diff --git a/lib/react_client/react_interop.dart b/lib/react_client/react_interop.dart index c68dc46e..e38d506c 100644 --- a/lib/react_client/react_interop.dart +++ b/lib/react_client/react_interop.dart @@ -277,7 +277,6 @@ ReactComponentFactoryProxy memo2(ReactComponentFactoryProxy factory, return ReactDartWrappedComponentFactoryProxy(hoc); } - /// Defer loading a component's code until it is rendered for the first time. /// /// The `lazy` function is used to create lazy components in React Dart. Lazy components are loaded only when they are rendered for the first time, which can help improve the initial loading time of your application. diff --git a/test/factory/common_factory_tests.dart b/test/factory/common_factory_tests.dart index 66ee402e..5ac6729e 100644 --- a/test/factory/common_factory_tests.dart +++ b/test/factory/common_factory_tests.dart @@ -26,7 +26,9 @@ import '../util.dart'; /// [dartComponentVersion] should be specified for all components with Dart render code in order to /// properly test `props.children`, forwardRef compatibility, etc. void commonFactoryTests(ReactComponentFactoryProxy factory, - {String? dartComponentVersion, bool skipPropValuesTest = false, ReactElement Function(dynamic children)? renderWrapper}) { + {String? dartComponentVersion, + bool skipPropValuesTest = false, + ReactElement Function(dynamic children)? renderWrapper}) { _childKeyWarningTests( factory, renderWithUniqueOwnerName: (ReactElement Function() render) => _renderWithUniqueOwnerName(render, renderWrapper), diff --git a/test/react_lazy_test.dart b/test/react_lazy_test.dart index c903a8b8..bffeffdb 100644 --- a/test/react_lazy_test.dart +++ b/test/react_lazy_test.dart @@ -11,9 +11,9 @@ main() { group('lazy', () { group('- common factory behavior -', () { final LazyTest = react.lazy(() async => react.registerFunctionComponent((props) { - props['onDartRender']?.call(props); - return react.div({...props}); - })); + props['onDartRender']?.call(props); + return react.div({...props}); + })); commonFactoryTests( LazyTest,