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

Search Results Disappear After Initial Display Due to Full Conversation List Reloading #529

Open
ershagen opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ershagen
Copy link

ershagen commented May 13, 2024

Describe the bug

In the chat search functionality, typing any search query initially shows the correct user(s) briefly, but then the interface reloads all conversations, causing the search results to disappear. The conversation list shows a loader beneath the search results, and once the loading is complete, it displays all conversations again instead of just the search results. I'm using Firebase based on the demo.

Seems to be exactly the same problem in the demo: https://advanced-chat.github.io/vue-advanced-chat/

Steps to reproduce

  1. Go to the main chat interface.
  2. Click on the search field at the top.
  3. Type in any search query to filter conversations.
  4. Observe that the correct search results appear briefly.
  5. Notice a loader appearing beneath the search results.
  6. See that the interface suddenly reloads, displaying all conversations instead of maintaining the search results.

Expected behavior

When a search query is entered, the expected behavior is for the search results to persist, displaying only the conversations that match the search criteria. The interface should not reload all conversations and discard the search results.

Device (please complete the following information)

  • OS: [MacOS]
  • Browser: [Chrome]

Additional context

This issue occurs consistently and affects the usability of the search functionality. It seems like there might be a problem with how the search component handles state or how it reacts to the completion of the loading process.

@ershagen ershagen added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant