nextjs

  1. H

    Custom usefetcher invalid hook error in nextjs typescript

    I am trying to make a custom usefetcher in my Nextjs18 typescript project but it keeps giving me the "Invalid hook call. Hooks can only be called inside of the body of a function component." error. Here is the code: import { Axios as request } from "./axios"; import { AxiosRequestConfig } from...
Top Bottom