lukemorales / query-key-factory

A library for creating typesafe standardized query keys, useful for cache management in @tanstack/query
https://www.npmjs.com/package/@lukemorales/query-key-factory
MIT License
1.16k stars 32 forks source link

feat: support longer tuples in query keys in `QueryOptions` #47

Closed lukemorales closed 1 year ago

lukemorales commented 1 year ago

This PR adds support for longer tuples in query keys when declaring QueryOptions.

- queryKey: [string]
+ queryKey: [string, number, ...string[]]

Thanks to @Kamahl19 for pushing me to make this improvement

Fixes #39

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: dc06c95b4d53bfc8e3247722c581e8d0c03d7b8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------------ | ----- | | @lukemorales/query-key-factory | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR