Category "swr"

useswr crashes react component

After adding an SWR data fetch to my react component it crashes, if I comment it out it works fine. I get the following error after uncommenting line const { da

not getting data when using SWR and context API in Nextjs

am trying to see the data am that am get from an API using SWR and also setting the currency in the API to what ever the user is using through context API but i

Render error when using swr within react component

I am currently creating a blog and I am trying to add a viewcount to my blogposts. import { useEffect } from 'react' import useSWR from 'swr' const fetcher = (