79173261

Date: 2024-11-09 16:57:58
Score: 0.5
Natty:
Report link

More of a workaround than a proper solution to my problem, but when I use the parameters in the URL directly instead of in the query argument it works as expected:

  const fromISO = from.toISOString()
  const toISO = to.toISOString()    

  const { data, error } = await useAPI<RateResponse>(
    `/users/${userId}/projects/${projectId}/rates?from=${fromISO}&to=${toISO}`)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zmaten