From 1b1ad625f23b4ef6c6b16f7a99da230628289c12 Mon Sep 17 00:00:00 2001 From: Keal Jones Date: Mon, 9 Sep 2024 17:14:11 -0700 Subject: [PATCH] format --- lib/react_client/react_interop.dart | 1 - test/factory/common_factory_tests.dart | 4 +++- test/react_lazy_test.dart | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) 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,