mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
fix: limit and offset with non numbers
This commit is contained in:
parent
8c2a502ead
commit
386a42aafa
@ -1,5 +1,8 @@
|
|||||||
import { encodeNumber, decodeNumber } from 'serialize-query-params';
|
import { encodeNumber, decodeNumber } from 'serialize-query-params';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see: https://github.com/pbeshai/use-query-params/issues/175#issuecomment-982791559
|
||||||
|
*/
|
||||||
export const SafeNumberParam = {
|
export const SafeNumberParam = {
|
||||||
encode: encodeNumber,
|
encode: encodeNumber,
|
||||||
decode: (input: any) => {
|
decode: (input: any) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user