-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
useBackgroundQuery
: remove promiseCache
, work around race condition
#11366
Merged
phryneas
merged 27 commits into
release-3.9
from
pr/remove-useBackgroundQuery-promiseCache
Dec 1, 2023
Merged
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
8ecd36f
`useSuspenseQuery`: remove `promiseCache`
phryneas b8c51af
missed cleanup
phryneas 79577b5
WIP status: useBackgroundQuery
phryneas 1510019
working reimplementation
phryneas 532505a
update `current[0]` correctly
phryneas 50c2149
change `key` to empty object
phryneas 6dd943a
Merge branch 'pr/remove-useSuspenseQuery-promiseCache' into pr/remove…
phryneas c9c3177
move `secondIfNewerFulfilledOrFirst` call into `unwrapQueryRef`
phryneas 4a5c3e2
remove unused import
phryneas 083af14
PR feedback
phryneas 3da56f0
more PR feedback
phryneas 2cad580
review feedback
phryneas 346e5e8
re-add delay to test
phryneas fc66f12
add more mock delays
phryneas 1e3297e
Separate withSequence from createFulfilledPromise and createRejectedP…
jerelmiller a6e421a
Remove need for sequencing on promises by returning newer promise whe…
jerelmiller 53871a1
Merge remote-tracking branch 'origin/release-3.9' into pr/remove-useB…
phryneas 82bd4ae
`useLoadableQuery`: remove `promiseCache`
phryneas f8e0e05
remove second argument to `wrapQueryRef`
phryneas 10175b5
chores
phryneas b248d6c
Merge remote-tracking branch 'origin/release-3.9' into pr/remove-useB…
phryneas 4a413c3
fix most tests by adding delays
phryneas 8010b0c
Clean up Prettier, Size-limit, and Api-Extractor
phryneas c150398
add `skipNonTrackingRenders` to profiler
phryneas d07aa6a
add comments to "phantom render" tests
phryneas 1eef04f
Merge branch 'release-3.9' into pr/remove-useBackgroundQuery-promiseC…
phryneas 4bde5a0
Clean up Prettier, Size-limit, and Api-Extractor
phryneas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof I really gotta update these tests to use the new profiler helpers 😄. Would love to avoid testing against the query refs directly, but understand the change here!