-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: useOwnItems hook to receive page number #426
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR 🙇
…into 425-useOwnHook-pgaination
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two little changes! 👹
src/config/keys.ts
Outdated
searchArgs?: { | ||
name: string; | ||
}, | ||
) => [ITEMS_KEY, 'own', args.page, args.limit, searchArgs?.name]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
) => [ITEMS_KEY, 'own', args.page, args.limit, searchArgs?.name]; | |
) => [ITEMS_KEY, 'own', { page: args.page, limit: args.limit }, searchArgs]; |
export type OwnItemsQuery = { | ||
page?: number; | ||
name?: string; | ||
limit?: number; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed used, I think u're talking about all
?
@pyphilia
…into 425-useOwnHook-pgaination
closes #425