Skip to content

Conversation

@mmurto
Copy link
Contributor

@mmurto mmurto commented May 16, 2024

The query key functions for queries that don't take in additional request parameters don't allow for using additional query key input, but query hooks always take in a query key parameter. This leads to the query key parameter in hooks without additional input being unused variable, leading to TypeScript erroring. Fix this by always taking query key parameter in query key functions, and always using it in query hooks.

Fixes #112.

The query key functions for queries that don't take in additional request parameters don't allow for using additional query key input, but query hooks always take in a query key parameter. This leads to the query key parameter in hooks without additional input being unused variable, leading to TypeScript erroring. Fix this by always taking query key parameter in query key functions, and always using it in query hooks. Fixes 7nohe#112. Signed-off-by: Mikko Murto <mikko.murto@hhpartners.fi>
@seriouslag
Copy link
Collaborator

Thank you for the PR, this looks great!

Copy link
Owner

@7nohe 7nohe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@7nohe 7nohe merged commit 0ae3d77 into 7nohe:main May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants