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
Multiple SwiftUI instances bound to separate chat clients
If possible, how can you achieve this currently?
It's not possible to achieve due to the ridiculous self registration pattern of StreamChat for injection. That instance then holds a specific chat client that would be used by all views.
What would be the better way?
Pass StreamChat to the view constructor
GetStream Environment
Not relevant
Additional context
The text was updated successfully, but these errors were encountered:
We don't support multiple chat client instances at the same time. If you logout from the first client, you should clean up all the SwiftUI views that keep the previous instance.
Potentially, you could also have a leak somewhere.
What are you trying to achieve?
Multiple SwiftUI instances bound to separate chat clients
If possible, how can you achieve this currently?
It's not possible to achieve due to the ridiculous self registration pattern of StreamChat for injection. That instance then holds a specific chat client that would be used by all views.
What would be the better way?
Pass StreamChat to the view constructor
GetStream Environment
Not relevant
Additional context
The text was updated successfully, but these errors were encountered: