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 the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@urql/[email protected]
Minor Changes
Patch Changes
relayPagination
andsimplePagination
helpers return value asResolver<any, any, any>
as there's no way to match them consistently to either generated or non-generated resolver types anymore, by @kitten (See #1778)@urql/[email protected]
Minor Changes
operationStore
updates whenquery
,variables
, andcontext
are changed. This also adds anoperationStore(...).reexecute()
method, which optionally accepts a new context value and forces an update on the store, so that a query may reexecute, by @kitten (See #1780)Patch Changes
subscription(...)
type further to allow anyoperationStore
input, regardless of theResult
produced, by @kitten (See #1779)@urql/[email protected]
Patch Changes
@urql/[email protected]
Patch Changes
@urql/[email protected]
Patch Changes
ssrExchange().restoreData()
from adding results to the exchange that have already been invalidated. This may happen whenrestoreData()
is called repeatedly, e.g. per page. When a prior run has already invalidated an SSR result then the result is 'migrated' to the user'scacheExchange
, which means thatrestoreData()
should never attempt to re-add it again, by @kitten (See #1776)stale: true
, where acache-first
operation issued by Graphcache wouldn't yield an affected query and update its result to reflect the loading state withstale: true
. This is a regression fromv2.1.0
and mostly becomes unexpected whencache.invalidate(...)
is used, by @kitten (See #1755)[email protected]
Patch Changes
resetUrqlClient
not resetting the SSR cache itself and instead restoring data when all data related to thisClient
and session should've been deleted, by @Biboswan (See #1715)@urql/[email protected]
Patch Changes
useQuery
implementation to utilise the single-source implementation of@urql/[email protected]
. This should improve the stability of promisifieduseQuery()
calls and prevent operations from not being issued in some edge cases, by @kitten (See #1758)