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: allow empty query and mutation keys #62

Closed therobertgrigorian closed 1 year ago

therobertgrigorian commented 1 year ago

Do we need to make it mandatory? I believe it could be beneficial to avoid writing queryKey and mutationKey and instead pass just a function, as it would reduce the amount of code.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: b849786c25fdab91f3fda0bf38304b8dc1b42198

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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