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

Move queries that find related posts into a subcomponent #168

Closed
wants to merge 5 commits into from

Conversation

datho7561
Copy link
Collaborator

@datho7561 datho7561 commented Mar 19, 2022

As far as I understand, when any query present in the top level component in one of the pages updates, the page needs to re-render. When it does this, it re-renders the search bar as well, which removes any content currently added to it.

Unfortunately, since we have the mechanism to extend the header bar, it's not as simple as lifting out all the content of the page into a component.

@vercel
Copy link

vercel bot commented Mar 19, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/book-bazar/book-bazar/3qDAhGR7TxyJr871gyZPhkK5KQCW
✅ Preview: https://book-bazar-git-149-prevent-reload-breaking-search-book-bazar.vercel.app

@datho7561
Copy link
Collaborator Author

caleb, please let me know if you can still reproduce this issue from the book page. If you can't, I will go ahead and apply the same pattern to other pages to avoid the search bar breaking

@calebmech calebmech linked an issue Mar 21, 2022 that may be closed by this pull request
This reverts commit 2e0f9aa.
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

Successfully merging this pull request may close these issues.

Search bar cleared before I could complete search
2 participants