Skip to content

Fix concurrency issue with useFind (Contribution) - #433

Merged
nachocodoner merged 7 commits into
masterfrom
fix-concurrency-usefind
Apr 3, 2025
Merged

nachocodoner merged 7 commits into
masterfrom
fix-concurrency-usefind

Conversation

@nachocodoner

Copy link
Copy Markdown
Member

Continues: #428 and #419

Verifying the fix provided with the test facilitated so that we can merge it already and make it available for next beta of the package. This branch is a way for us to do the verifications before merging to base branch.

Poyoman39 and others added 7 commits February 25, 2025 17:10
Thank you for your review ! Code looks cleaner :)

Co-authored-by: Notas Hellout <5165674+make-github-pseudonymous-again@users.noreply.github.com>
…usefind

# Conflicts:
#	packages/react-meteor-data/useFind.ts
@CLAassistant

CLAassistant commented Apr 3, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@nachocodoner
nachocodoner marked this pull request as ready for review April 3, 2025 15:16
@nachocodoner
nachocodoner merged commit 27ca6b4 into master Apr 3, 2025
@nachocodoner
nachocodoner deleted the fix-concurrency-usefind branch April 3, 2025 15:26
@Poyoman39

Copy link
Copy Markdown
Contributor

@nachocodoner i signed it but with another email

italojs pushed a commit that referenced this pull request Jun 11, 2025
In the client-side implementation of suspense/useFind, useFindClient is used. PR #433 introduced useSyncEffect.
Nevertheless, when used in Strict Mode and with Suspense, the useSyncEffect implementation results in non-trivial and hard-to-predict issues.
As a result, the Suspense-enabled useFindSuspenseClient will no longer reference useFindClient and will instead be a standalone implementation (derived from the last stable version of useFindClient).
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.

3 participants