generated from graasp/graasp-repo
-
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
Closed
Closed
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2f88fa1
fix: useOwnItems hook to receive page number
LinaYahya 1a121f1
fix:test of useownItems
LinaYahya af428ac
fix: add page as a query key for useOwnItems
LinaYahya f5d7849
feat: add search query to get own items hook
LinaYahya c3a7284
fix: ignore errors within get manyItems membership split requests ID's
LinaYahya a5790c0
feat: add all flag to get own items hook
LinaYahya c08b81b
build: add limit query to get own items list
LinaYahya 5b9d0e1
lint: formating
LinaYahya c8be4ee
fix: get own items url test
LinaYahya 54cbc7a
test: fix get own items test
LinaYahya 2cee704
fix: change data structure of use own hook
LinaYahya 3b019ec
formatting issues
LinaYahya bda6fea
test: fix own items test
LinaYahya 4ef49a4
test: fix own items test
LinaYahya abbdcb9
test: fix own items test
LinaYahya 76303c3
fix: import missing dependancies
LinaYahya 41fe4d5
fix: data type for list of own items hook
LinaYahya 4f868b3
Merge branch 'main' of https://github.com/graasp/graasp-query-client …
LinaYahya 1d2c80f
fix: own items keys params structure
LinaYahya bb11503
Merge branch 'main' of https://github.com/graasp/graasp-query-client …
LinaYahya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { AxiosError } from 'axios'; | ||
import { List } from 'immutable'; | ||
import { QueryObserverOptions } from 'react-query'; | ||
|
||
import { isDataEqual } from './utils/util'; | ||
|
@@ -35,3 +36,19 @@ export type QueryClientConfig = { | |
isDataEqual?: typeof isDataEqual; | ||
}; | ||
}; | ||
|
||
export type OwnItemsQuery = { | ||
page?: number; | ||
name?: string; | ||
limit?: number; | ||
}; | ||
Comment on lines
+40
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. indeed used, I think u're talking about |
||
|
||
export type PaginationArgs = { | ||
page?: number; | ||
limit?: number; | ||
}; | ||
|
||
export type Paginated<T> = { | ||
totalCount: number; | ||
data: List<T>; | ||
}; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.