Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Oct 18, 2024
1 parent fc2deca commit 954fca9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Context<T> {
Context<TValue> createContext<TValue>([
TValue? defaultValue,
@Deprecated('This has no effect in React 18, and there is no replacement for it.')
int Function(TValue? currentValue, TValue? nextValue)? calculateChangedBits,
int Function(TValue? currentValue, TValue? nextValue)? calculateChangedBits,
]) {
final jsDefaultValue = ContextHelpers.jsifyNewContext(defaultValue);

Expand Down
4 changes: 1 addition & 3 deletions lib/src/react_test_utils/internal_test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ external bool _isCompositeComponentWithType(/* [1] */ instance, dynamic type);

/// Returns `true` if instance is a custom composite component created using `React.createClass()`
/// that is of the [ReactComponentFactoryProxy.type] of the provided [componentFactory].
bool isCompositeComponentWithTypeV2(
/* [1] */ instance,
ReactComponentFactoryProxy componentFactory) {
bool isCompositeComponentWithTypeV2(/* [1] */ instance, ReactComponentFactoryProxy componentFactory) {
return _isCompositeComponentWithType(instance, getComponentTypeV2(componentFactory));
}

Expand Down
1 change: 0 additions & 1 deletion test/react_context_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int calculateChangedBits(currentValue, nextValue) {
return result;
}


// ignore: deprecated_member_use_from_same_package
var TestCalculateChangedBitsContext = react.createContext(1, calculateChangedBits);

Expand Down

0 comments on commit 954fca9

Please sign in to comment.