Skip to content
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

Closed
wants to merge 20 commits into from

Conversation

LinaYahya
Copy link
Contributor

@LinaYahya LinaYahya commented Sep 14, 2023

closes #425

@LinaYahya LinaYahya marked this pull request as ready for review September 20, 2023 14:00
@LinaYahya LinaYahya requested a review from pyphilia September 20, 2023 14:14
@LinaYahya LinaYahya self-assigned this Sep 20, 2023
Copy link
Contributor

@pyphilia pyphilia left a 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 🙇

src/api/item.ts Outdated Show resolved Hide resolved
src/api/routes.ts Outdated Show resolved Hide resolved
src/config/keys.ts Outdated Show resolved Hide resolved
src/hooks/item.test.ts Outdated Show resolved Hide resolved
src/hooks/item.test.ts Outdated Show resolved Hide resolved
src/hooks/item.test.ts Outdated Show resolved Hide resolved
src/hooks/item.ts Outdated Show resolved Hide resolved
src/hooks/item.ts Outdated Show resolved Hide resolved
src/hooks/item.ts Outdated Show resolved Hide resolved
src/hooks/item.ts Outdated Show resolved Hide resolved
@LinaYahya LinaYahya requested a review from pyphilia September 25, 2023 12:12
Copy link
Contributor

@pyphilia pyphilia left a 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! 👹

searchArgs?: {
name: string;
},
) => [ITEMS_KEY, 'own', args.page, args.limit, searchArgs?.name];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
) => [ITEMS_KEY, 'own', args.page, args.limit, searchArgs?.name];
) => [ITEMS_KEY, 'own', { page: args.page, limit: args.limit }, searchArgs];

Comment on lines +40 to +44
export type OwnItemsQuery = {
page?: number;
name?: string;
limit?: number;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Not used anymore?

Copy link
Contributor Author

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

@pyphilia pyphilia closed this Dec 1, 2023
@spaenleh spaenleh deleted the 425-useOwnHook-pgaination branch January 22, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit getOwnList hook to be paginated
2 participants