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

fix: error after first search has results,but second search results i… #68

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

Jlg1128
Copy link

@Jlg1128 Jlg1128 commented Mar 13, 2023

Steps to reproduce:

  1. search "The richest city in Florida" and wait response
  2. search "The richest city in China"

Then:
fetchError

Reason
It is because of React's update logic, when in asynchronous, it is not batchUpdate, so setColumns makes the state's columns newest but the rows is old in render, that is not match.

@vercel
Copy link

vercel bot commented Mar 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
text-sql ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 13, 2023 at 6:22AM (UTC)

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.

2 participants