Pre-rendered page + dynamic content
I have a list of pre-rendered (at build time)
public
articles. But then I want to check if there is an active user session, load additional draft
articles and add them to the same article list.
Is it possible to do this server-side without relying on useEffect or React Query? Can I somehow use a Suspense on a data loading hook?Solution:Jump to solution
I found a way with Next.js
unstable_cache
So I keep whole route dynamic, but I cache publicArticles
instead:
```ts...1 Reply
Solution
I found a way with Next.js
unstable_cache
So I keep whole route dynamic, but I cache publicArticles
instead: