stream-chat-react-native
stream-chat-react-native copied to clipboard
useAppSettings.ts fails on app load.
Describe the bug
An error occurred while getting app settings: Error: Both secret and user tokens are not set. Either client.connectUser wasn't called or client.disconnect was called
Dev environment info (please complete/provide the following information):
- Package version:
"expo": "45.0.6",
"react-native": "0.68.2",
"stream-chat": "6.7.3",
"stream-chat-expo": "4.10.0",
- Device/Emulator:
Pixel 6 - Android 12 iPhone 12 Pro Max - 15.6
To Reproduce Steps to reproduce the behavior:
- Clone https://github.com/izakfilmalter/stream-connect-error
yarn install- Add a token to line 10 in
App.tsx. - Boot app.
- See the console for error
One odd thing is that iOS will start to work when you call connectUser. Android on the other hand just fails to load the channel list when you render it.
Expected behavior
Should be able to render Chat component before calling connectUser. The HOC should be able to wrap logged out screens.
Additional context
I don't get this error when I use "stream-chat-expo": "3.10.2". Something happened on 4.0.
Would be great to get some insight on what is happening here.
@izakfilmalter thanks for reaching out! This has been added to our backlog and will be refined next week
Hey team! Please add your planning poker estimate with ZenHub @khushal87 @madsroskar @vishalnarkhede
Is there an eta for this fix?
this still is happening

"stream-chat-react-native": "^5.3.1"
"expo": "^45.0.0"
"react-native": "0.68.2"
"react": "17.0.2",
any news about it ?
I have changed the prio of this issue to high and start trigaing. @izakfilmalter it seems like the repo you've mentioned above ("Clone https://github.com/izakfilmalter/stream-connect-error "), had been moved/deleted.
@vanGalilea My fault, should be public now.
:tada: This issue has been resolved in version 5.4.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket: