You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/concepts2/auto_dispose.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,15 @@ which can lead to memory leaks.
49
49
## When is automatic disposal triggered?
50
50
51
51
When automatic disposal is enabled, Riverpod will track whether a provider has listeners or not.
52
-
This happens by tracking [Ref.watch](https://pub.dev/documentation/hooks_riverpod/3.0.0-dev.18/hooks_riverpod/Ref/watch.html)/[Ref.listen](https://pub.dev/documentation/hooks_riverpod/3.0.0-dev.18/hooks_riverpod/Ref/listen.html)
52
+
This happens by tracking [Ref.watch](https://pub.dev/documentation/hooks_riverpod/latest/hooks_riverpod/Ref/watch.html)/[Ref.listen](https://pub.dev/documentation/hooks_riverpod/latest/hooks_riverpod/Ref/listen.html)
53
53
calls (and a few others).
54
54
55
55
When that counter reaches zero, the provider is considered "not used", and
Copy file name to clipboardExpand all lines: website/docs/concepts2/containers.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ void main() {
38
38
39
39
:::note
40
40
Inside tests, do not use [ProviderContainer] directly.
41
-
Use [ProviderContainer.test](https://pub.dev/documentation/hooks_riverpod/3.0.0-dev.18/hooks_riverpod/ProviderContainer/ProviderContainer.test.html) instead.
41
+
Use [ProviderContainer.test](https://pub.dev/documentation/hooks_riverpod/latest/hooks_riverpod/ProviderContainer/ProviderContainer.test.html) instead.
42
42
This will automatically dispose the container when the test ends.
43
43
44
44
```dart
@@ -144,6 +144,6 @@ Riverpod does this for a few reasons, which come down the the same logic: "No gl
0 commit comments