Skip to content

Multiple instances of StateNotifier are created #1191

Answered by rrousselGit
alextran1502 asked this question in Q&A
Discussion options

You must be logged in to vote

You're using ref.watch in a couple of places within your class. If the value obtained changes, that'll recreate the class.

Maybe you want to use ref.listen instead

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alextran1502
Comment options

@rrousselGit
Comment options

@alextran1502
Comment options

Answer selected by alextran1502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1190 on February 14, 2022 16:57.