Skip to content

Commit

Permalink
fix(createQuery): have default values by default
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Dec 5, 2019
1 parent 0dbd256 commit d49f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const factoryParameters = <T = object>(

return useMemo(
() => ({
createQuery,
createQuery: (customValues?: T) => createQuery(customValues || values),
createQueryString: (customValues?: T) =>
stringify(createQuery(customValues || values)),
initialValues,
Expand Down

0 comments on commit d49f0bf

Please sign in to comment.