(id: string)
| 25 | }) |
| 26 | |
| 27 | export const userQueryOptions = (id: string) => |
| 28 | queryOptions({ |
| 29 | queryKey: ['users', id], |
| 30 | queryFn: () => |
| 31 | axios |
| 32 | .get<User>(DEPLOY_URL + '/api/users/' + id) |
| 33 | .then((r) => r.data) |
| 34 | .catch(() => { |
| 35 | throw new Error('Failed to fetch user') |
| 36 | }), |
| 37 | }) |
no test coverage detected