Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kealjones-wk committed Sep 10, 2024
1 parent 4a05523 commit 1b1ad62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/react_client/react_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion test/factory/common_factory_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 3 additions & 3 deletions test/react_lazy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1b1ad62

Please sign in to comment.