Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Aug 9, 2023
1 parent e784ae5 commit 43d1bc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/react_client/bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Component2BridgeImpl extends Component2Bridge {
// Short-circuit to match the ReactJS 16 behavior of not re-rendering the component if newState is null.
if (newState == null) return;

final dynamic firstArg = jsBackingMapOrJsCopy(newState);
final firstArg = jsBackingMapOrJsCopy(newState);

if (callback == null) {
component.jsThis.setState(firstArg);
Expand Down
2 changes: 0 additions & 2 deletions lib/react_client/component_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ class ReactJsContextComponentFactoryProxy extends ReactJsComponentFactoryProxy {
this.shouldConvertDomProps = true,
this.isConsumer = false,
this.isProvider = false,
// ignore: prefer_initializing_formals
}) : type = jsClass,
super(jsClass, shouldConvertDomProps: shouldConvertDomProps);

Expand Down Expand Up @@ -266,7 +265,6 @@ class ReactJsComponentFactoryProxy extends ReactComponentFactoryProxy {
this.shouldConvertDomProps = true,
this.alwaysReturnChildrenAsList = false,
List<String> additionalRefPropKeys = const [],
// ignore: prefer_initializing_formals
}) : type = jsClass,
_additionalRefPropKeys = additionalRefPropKeys {
if (jsClass == null) {
Expand Down

0 comments on commit 43d1bc4

Please sign in to comment.