Skip to content
Discussion options

You must be logged in to vote

Your best bet would be to use the restoreData method that is available on the ssrExchange. When you arrive on the client you call ssr.restoreData({ [result.operation.key]: result }) and that should be enough to have this hydrated in your client cache because the next time this operation goes through the exchange chain the ssr-exchange will reply with the data you restored.

This means that from your server-component you'll need to pass { [result.operation.key]: result } as props to your first client-component.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HiroshiIgarash
Comment options

Answer selected by HiroshiIgarash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3790 on June 30, 2025 07:40.