Can Route Handlers return RSCs? #60523
Replies: 2 comments
-
This discussion seems very relevant #58674, and from what I gather there is no way to do this currently |
Beta Was this translation helpful? Give feedback.
-
I'm also looking for a solution for this. Did you find anything relevant? |
Beta Was this translation helpful? Give feedback.
-
I am looking for a way to fetch RSCs from the client in order to implement infinite scroll. In particular, I want all of the benefits of RSCs like the React Cache and the Fetch Cache, as well as streaming support via Suspense boundaries.
Server Actions almost work for this case, but they no longer seem to be recommended for data fetching (only for mutation) and they also don't leverage the React Cache, which is critical for deduping requests.
Beta Was this translation helpful? Give feedback.
All reactions