Replies: 2 comments 2 replies
-
There's nothing wrong with a large number of active providers It's more about whether your architecture make sense, but that's a different topic. |
Beta Was this translation helpful? Give feedback.
-
@mark8044 are all of those 45 providers needed right away? There's nothing wrong with having so many providers, but if they aren't needed right away, you can take advantage of the lazy instantiation that riverpod provides. For example, we have a |
Beta Was this translation helpful? Give feedback.
-
As my app has grown, I now about 45 providers, mostly ChangeNotifierProviders running. They all get initialized right at main app startup, and continue to run and do various things all throughout the app.
Everyhting is running smoothly and without a problem.
My question is I guess theoretical, since everything is OK. But the question is, is there anything inherently wrong with having a lot of providers all come up at the same time and run at the same time. Or maybe 45 isn't considered a lot ...
Beta Was this translation helpful? Give feedback.
All reactions