Open constantinosgeorgiou opened 1 year ago
@Yuri-Lima I can create a PR if this issue is assigned to me
Hi, @constantinosgeorgiou, sorry for my late answer. Ok, i have done that. Thank you for your support.
Hi, guys! Was this problem fixed? I'm trying to pass query params in some routes and it's not working.
@matheusdamiao hey man. Unfortunately not yet. I out of time at the moment to put my hand on it. If you wanna make that correction i would be glad to merge you PR. 👍
The way the current client is set up paging gets ignored due to the way the
ProductsMainParams
is defined.The
ProductsParams
contains the propertiespage
andper_page
, but the rest of the params do not.Since paging works for product variations and product attributes, it is required to work for the rest of the endpoints.
Solution
Create a type intersection with either the
ProductsParams
type, or create a new typePaging
.