Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

messages not visible initially #2462

Open
macrozone opened this issue Nov 27, 2023 · 1 comment
Open

messages not visible initially #2462

macrozone opened this issue Nov 27, 2023 · 1 comment

Comments

@macrozone
Copy link

Issue Description

i load messages from an endpoint (using apollo-client).

The chat window is initially empty, until i add another message, then all loaded messages are shown.

the messages array is referentially stable, so if its content changes, its a new array.

Steps to Reproduce / Code Snippets

  • create an example, but have the initial message array beeing non-empty

Expected Results

the Chat component should render the initial messages arry

Additional Information

  • Nodejs version: 18
  • React version: 18.2
  • React Native version: 0.72.6
  • react-native-gifted-chat version:2.4.0
  • Platform(s) (iOS, Android, or both?): web
  • TypeScript version: 5.2.2
@AliasPedroKarim
Copy link

I have same issue !
I use "t3-oss/create-t3-turbo" (template) a version that I modified so that expo also works on the web, I installed "react-native-gifted-chat" to make it work on my project when I click on a link that opens the chat it doesn't load the messages but when I reload on the actual chat page it displays the messages!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants