Skip to content

Commit 8fa49e6

Browse files
always return defaultValue
1 parent a8cadfe commit 8fa49e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/inMemoryPagination.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export const useQueryAndPagination: IUseQueryAndPagination = function (config) {
5757
}, [])
5858

5959
return {
60-
queryParameters: state.queryParameters,
60+
queryParameters: {
61+
...(config?.defaultQueryParameters ? config.defaultQueryParameters : {}),
62+
...state.queryParameters,
63+
},
6164
actions: {
6265
updateQuery,
6366
clear,

0 commit comments

Comments
 (0)