Replies: 2 comments 2 replies
-
Is this issue resolved yet? |
Beta Was this translation helpful? Give feedback.
-
same issue |
Beta Was this translation helpful? Give feedback.
-
Is this issue resolved yet? |
Beta Was this translation helpful? Give feedback.
-
same issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
"next": "^13.5.1",
"@tanstack/react-query": "^4.35.3",
Additional information
No response
Example
await queryClient.prefetchQuery(
[API_ENDPOINTS.NEWS, 'solution'],
useTechnologySolutionQuery
);
export const fetchTechnologySolution = async () => {
const { data } = await http.get(
${API_ENDPOINTS.NEWS}?categories.code=solutions
);
return data as News[];
};
export const useTechnologySolutionQuery = () => {
return useQuery<News[], Error>([API_ENDPOINTS.NEWS, 'solution'], () =>
fetchTechnologySolution()
);
};
No response
Beta Was this translation helpful? Give feedback.
All reactions