-
Notifications
You must be signed in to change notification settings - Fork 162
Concurrency issue with useFind #418
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
Comments
I was able to create a test that catch this error:
@Poyoman39 and I tried to create solutions but doesn't look like there are good ones |
Probably best to add a test like this to #419. |
I believe this Issue should stay open, and then @Poyoman39 PR #419 should be rebased with master and add my test (I propose a fix, but it was not good, so I kept only the test) |
That is #436 correct? |
@StorytellerCZ no this would be for a useTracker improvement ... still working on it ;) |
I have found a problem with the current implementation of useFindClient.
A
fetchData
is run synchronously at first render, then useEffect runcursor.observe({
which watch for changes on cursor.On my component there is a concurrency issue with changes happening between the first render and the useEffect (so between the first fetchData and the observer creation)
The text was updated successfully, but these errors were encountered: