Skip to content

Non-auto disposed provider vs auto disposed with maintainState = true #660

Answered by rrousselGit
wujek-srujek asked this question in Q&A
Discussion options

You must be logged in to vote

In terms of behaviour, they are similar.

The real difference is in terms of debugging.

It is purposefully not allowed to read an auto-dispose provider from a non-auto-disposed to avoid mistakes.
Whereas an auto-dispose provider with maintainState = true does not prevent those mistakes.

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@iamarnas
Comment options

@rrousselGit
Comment options

@wujek-srujek
Comment options

@iamarnas
Comment options

@wujek-srujek
Comment options

Answer selected by wujek-srujek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants