Next.js Discord

Discord Forum

Caching ext API data - client component

Unanswered
Blood cockle posted this in #help-forum
Open in Discord
Blood cockleOP
Hello, I have an issue where I call server action from a client component (in useEffect) and in the server action where I fetch the data - I set the revalidate to 15 minutes. But every time I refresh the page it still seems to send API requests. I don't understand caching that deeply, but is there some logical reason for this? I tried to use unstable_cache which (if Ive understood correctly) caches the function result? That worked, but why the revalidate in fetch doesnt seem to work at all

0 Replies