connectrpc / connect-query-es

TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.
https://connectrpc.com/docs/web/query/getting-started
Apache License 2.0
221 stars 14 forks source link

Add a distinguishing factor between infinite query keys and regular query keys #334

Closed paul-sachs closed 7 months ago

paul-sachs commented 7 months ago

Introduces a unique key for infinite queries so there's no chance to overlap and cause issues with shared cache.

This change introduces a new function and a new type:

This is technically a breaking change from a type perspective, though behaviour changes should be kept at a minimum since the key created by createConnectQueryKey will still work to invalidate infinite queries (unless the exact parameter is provided).

Fixes #328.