PSD
03/13/2025, 11:49 AMtypesense-instantsearch-adapter
with react-instantsearch-nextjs
and enabled routing
option there. Everything works fine. But if I manually add any negative number there, it throws this error Error: 400 - Parameter page must be an unsigned integer
with Internal server error on my site.
So my ques is, how can I validate page
and/or other params before adapter makes a request?Fanis Tharropoulos
03/13/2025, 12:34 PMPSD
03/13/2025, 12:56 PM<https://recipe-search.typesense.org/?r%5Bquery%5D=asi&r%5Bpage%5D=2>
4. Now manually change page to -2
or anything negative
5. This will throw the error in the console.Fanis Tharropoulos
03/13/2025, 1:01 PMPSD
03/14/2025, 4:41 AMFanis Tharropoulos
03/14/2025, 7:39 AMPSD
03/17/2025, 2:34 PMFanis Tharropoulos
03/17/2025, 2:50 PMPSD
03/18/2025, 6:29 AMFanis Tharropoulos
03/18/2025, 6:45 AMPSD
03/21/2025, 11:42 AMPSD
03/21/2025, 11:42 AM