While working on something else, I realized we were making API calls with a question mark at the end of the URL when providing an empty object as query params, or an object where all the props would end-up resulting in an ignored param, like an empty array.
This PR changes the logic a bit to avoid this, which is technically not incorrect, but it is aesthetically nicer to avoid the question mark when not needed.
While working on something else, I realized we were making API calls with a question mark at the end of the URL when providing an empty object as query params, or an object where all the props would end-up resulting in an ignored param, like an empty array.
This PR changes the logic a bit to avoid this, which is technically not incorrect, but it is aesthetically nicer to avoid the question mark when not needed.