Post

Are you expecting that because the component is async and you're await data, that component should not be cached?

(When used w/ PPR and wrapped in suspense)

0 reposts0 likes

Thanks! Giving that a shot now, but it seems that the `export const experimental_ppr = true;` and `"use cache";` cant be used in the same file since only async exports are allowed in `"use cache";`. The page uses Math.random() for a seed value, that I want statically rendered.

Ok, I seem to have a working solution. Instead of using dynamicIO I'm using PPR + unstable_cache. I wrapped the api request in unstable_cache, and have it revalidate after 30 seconds. `next build` says / is being exported as a static page. So I think this is working!