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:
ConnectInfiniteQueryKey which is just the original ConnectInfiniteQueryKey with an added param to indicate it's for infinite queries
createConnectInifiniteQueryKey which will create the above 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).
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:
ConnectInfiniteQueryKey
which is just the originalConnectInfiniteQueryKey
with an added param to indicate it's for infinite queriescreateConnectInifiniteQueryKey
which will create the above 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 theexact
parameter is provided).Fixes #328.