-
effect(() => print("Startup")); This effect will be resolved once and only once. Is this expected as there is no subscription to it to respond too? import 'package:signals/signals.dart';
void main() {
effect(() {
print("Startup");
});
} |
Beta Was this translation helpful? Give feedback.
Answered by
rodydavis
Nov 28, 2023
Replies: 2 comments 2 replies
-
That is correct, it will only subscribe on signals in the block scope that call .value |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rodydavis
-
To clarify the effect is only declared, subscribe to nothing yet trigger. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is correct, it will only subscribe on signals in the block scope that call .value