Provider of providers?? #923
-
In a chat app I have a conversation_list_provider that manages the list of conversations, what is the last message for each and showing/creating new conversations. BUT we think that during the lifecycle of the app, each conversation should have its own conversation_provider which manages the whole message list, paging and keeping the messages in memory. This means that we need a collection of conversation_provider, ie multiple instances of the same StateNotifier class. My question is, is it valid to have a provider that manages these providers of the same type?? OR should I always have only one provider instance of a provider type (a Notifier class) and deal with storage in a different way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You shouldn't dynamically create providers, so no Instead maybe you want to use |
Beta Was this translation helpful? Give feedback.
You shouldn't dynamically create providers, so no
Instead maybe you want to use
family