MCPcopy Create free account
hub / github.com/ArianHamdi/React-Query-NextJS-SSR / usePost

Function usePost

hooks/api/posts.js:4–6  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

2import * as api from 'api/posts';
3
4export const usePost = (id) => {
5 return useQuery(['post', id], () => api.getPost(id));
6}

Callers 1

PostPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected