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 input changes race condition #87

Open
Fifok opened this issue Mar 4, 2024 · 0 comments
Open

Search input changes race condition #87

Fifok opened this issue Mar 4, 2024 · 0 comments

Comments

@Fifok
Copy link
Contributor

Fifok commented Mar 4, 2024

When we enter some value to search input on first view (with Content types list) and after that we change it again but previous triggered request doesn't complete the latest value'll be changed to the first (to that value which started the first GET request).

Propositions to solve this issue:

  • add spinner + disable inputs (search and dropdowns) when loading (you can try to use useNavigation hook from react-router)
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

1 participant