-
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
Version Packages (beta) #11417
Merged
Merged
Version Packages (beta) #11417
Conversation
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 comment was marked as resolved.
This comment was marked as resolved.
jerelmiller
force-pushed
the
release-3.9
branch
from
December 6, 2023 20:55
c80ba36
to
3f7eecb
Compare
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
2 times, most recently
from
December 8, 2023 12:49
3d1d4dc
to
679ddea
Compare
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
3 times, most recently
from
December 15, 2023 10:00
c8910b1
to
1c067de
Compare
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
2 times, most recently
from
December 15, 2023 16:16
fa89813
to
80aa547
Compare
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
4 times, most recently
from
December 18, 2023 17:58
f0b38a8
to
24be136
Compare
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
from
December 18, 2023 19:20
24be136
to
42e28a4
Compare
github-actions
bot
force-pushed
the
changeset-release/release-3.9
branch
from
December 18, 2023 19:23
42e28a4
to
f2d8035
Compare
jerelmiller
approved these changes
Dec 18, 2023
alessbell
approved these changes
Dec 18, 2023
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.
🚀
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-3.9, this PR will be updated.
release-3.9
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onrelease-3.9
.Releases
@apollo/[email protected]
Minor Changes
#11412
58db5c3
Thanks @jerelmiller! - Create a newuseQueryRefHandlers
hook that returnsrefetch
andfetchMore
functions for a givenqueryRef
. This is useful to get access to handlers for aqueryRef
that was created bycreateQueryPreloader
or when the handlers for aqueryRef
produced by a different component are inaccessible.#11410
07fcf6a
Thanks @sf-twingate! - Allow returningIGNORE
sentinel object fromoptimisticResponse
functions to bail-out from the optimistic update.Consider this example:
The
IGNORE
sentinel can be destructured from the second parameter in the callback function signature passed tooptimisticResponse
.#11412
58db5c3
Thanks @jerelmiller! - Add the ability to start preloading a query outside React to begin fetching as early as possible. CallcreateQueryPreloader
to create apreloadQuery
function which can be called to start fetching a query. This returns aqueryRef
which is passed touseReadQuery
and suspended until the query is done fetching.#11397
3f7eecb
Thanks @aditya-kumawat! - Adds a newskipPollAttempt
callback function that's called whenever a refetch attempt occurs while polling. If the function returnstrue
, the refetch is skipped and not reattempted until the next poll interval. This will solve the frequent use-case of disabling polling when the window is inactive.#11435
5cce53e
Thanks @phryneas! - DeprecatescanonizeResults
.Using
canonizeResults
can result in memory leaks so we generally do not recommend using this option anymore.A future version of Apollo Client will contain a similar feature without the risk of memory leaks.
Patch Changes
#11369
2a47164
Thanks @phryneas! - Persisted Query Link: improve memory managementWeakCache
instead ofWeakMap
to keep a limited number of hash resultspersistedLink.resetHashCache()
method#10804
221dd99
Thanks @phryneas! - use WeakMap in React Native with Hermes#11409
2e7203b
Thanks @phryneas! - Adds an experimentalApolloClient.getMemoryInternals
helper