Non-auto disposed provider vs auto disposed with maintainState = true #660
-
What is the difference between a non-'auto disposed' provider vs an 'auto disposed' one with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.