Need to understand why this riverpod implementation could cause memory leak #3996
Unanswered
thanhdatvo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Deleting an entry from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Currently our product is using riverpod but it freezes after sometimes due to memory leaks or memory bloating.
Example of our riverpod implementation:
According to this document, https://riverpod.dev/docs/essentials/do_dont#avoid-dynamically-creating-providers
These could cause some memory leaks.
Could anybody help explain whether it actually causes any memory leak or memory bloating, if the number of UserStore instances is limited by the factory?
Beta Was this translation helpful? Give feedback.
All reactions