You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i am tring to hit a hono end point on a next js app, i am calling the endpoint on server side and it seems like connecting to hono returns an port: 80, address: '::1', syscall: 'connect', code: 'ECONNREFUSED', errno: -61,
I am making the call through react query const post = await queryClient.fetchQuery<TPost | null>({ queryKey: ['posts', id], queryFn: async () => getPostHandler(id), })
The entire page looks like this
`const PostPage = async ({ params: { id } }: IPostPageProps) => {
const queryClient = new QueryClient();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So i am tring to hit a hono end point on a next js app, i am calling the endpoint on server side and it seems like connecting to hono returns an
port: 80, address: '::1', syscall: 'connect', code: 'ECONNREFUSED', errno: -61,
I am making the call through react query
const post = await queryClient.fetchQuery<TPost | null>({ queryKey: ['posts', id], queryFn: async () => getPostHandler(id), })
The entire page looks like this
`const PostPage = async ({ params: { id } }: IPostPageProps) => {
const queryClient = new QueryClient();
const post = await queryClient.fetchQuery<TPost | null>({
queryKey: ["posts", id],
queryFn: async () => getPostHandler(id),
});
return
;};
export default PostPage;`
Beta Was this translation helpful? Give feedback.
All reactions