Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Commit 9b96d1b

Browse files
committed
fix: Changes default pagination limit to 10.
1 parent cb2da4b commit 9b96d1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ const todosFacade = factory<TodoEntity>({
4949
constructSort: (sort) => {
5050
return renameSortId(sort);
5151
}.
52-
// Optional property. Defaults to 100.
53-
defaultPaginationLimit: 100,
52+
// Optional property. Defaults to 10.
53+
defaultPaginationLimit: 10,
5454
entityName: 'todo',
5555
});
5656
```

src/factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default <E extends Entity>(factoryConfig: FactoryConfig<E>): Facade<E> =>
2121
constructEntity: constructIdEntity,
2222
constructFilter: parseFilterId,
2323
constructSort: renameSortId,
24-
defaultPaginationLimit: 100,
24+
defaultPaginationLimit: 10,
2525
...factoryConfig,
2626
};
2727
return {

0 commit comments

Comments
 (0)