Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Nov 27, 2023
1 parent c3e0557 commit 9c0845e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/preact_signals/lib/src/future_signal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class FutureSignal<T> extends Signal<SignalState<T>> {
this.timeout,
this.fireImmediately = true,
}) : super(SignalLoading<T>()) {
_stale = true;
if (fireImmediately) _init();
_stale = !fireImmediately;
}

final Future<T> Function() _getFuture;
Expand Down
2 changes: 1 addition & 1 deletion packages/preact_signals/lib/src/stream_signal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class StreamSignal<T> extends Signal<SignalState<T>> {
this.cancelOnError,
this.fireImmediately = true,
}) : super(SignalLoading<T>()) {
_stale = true;
if (fireImmediately) _init();
_stale = !fireImmediately;
}

final Stream<T> Function() _getStream;
Expand Down
2 changes: 1 addition & 1 deletion packages/preact_signals/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: preact_signals
description: Signal, Computed and Effect built with dart
version: 0.3.3
version: 0.3.3+1
repository: https://github.com/rodydavis/preact_signals.dart

environment:
Expand Down
4 changes: 2 additions & 2 deletions packages/signals/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: signals
description: "signal, computed and effect built with dart and extensions for flutter"
repository: https://github.com/rodydavis/preact_signals.dart
version: 1.0.1
version: 1.0.1+1

environment:
sdk: ">=3.0.0 <4.0.0"
Expand All @@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter
flutter_preact_signals: ^0.3.2
preact_signals: ^0.3.3
preact_signals: ^0.3.3+1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 9c0845e

Please sign in to comment.