Skip to content

AutoDisposeStreamProvider rebuilds the widget tree and reinvoces itself endlessly. #1078

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

You must be logged in to vote

You're misusing providers. Providers should be global finals, not obtained from functions

Something like getQuestionsList is not reasonable and is the cause of your problem (since you're effectively creating a new provider everytimes).
Instead make a global variable

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Turbozanik
Comment options

@rrousselGit
Comment options

@shahmirzali49
Comment options

@shahmirzali49
Comment options

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

This discussion was converted from issue #1077 on January 10, 2022 12:37.