Which hook i need to use for this request?
Hi I'm using the hook useOne to try to get the response of this uri: {API_URL}/getProducts?barcode=1234567890123, however when I code this:
const { data, isLoading, isError } = useOne({
resource: "getProducts",
id:
});
in the explorer the api goes like these: /getProducts/?barcode=1234567890123, with an additional /
const { data, isLoading, isError } = useOne({
resource: "getProducts",
id:
?barcode=${id},});
in the explorer the api goes like these: /getProducts/?barcode=1234567890123, with an additional /
