Import Rendered Server Component with Browser Data Arguments #70261
Unanswered
vincenzorm117
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
I've been experimenting with NextJS App Router Streaming and dynamic imports. Here is my understanding below.
Streaming
Streaming works like in this Mermaid Diagram (image below)
Dynamic Components
Dynamic components work like in this Mermaid Diagram (image below)
Note
Anybody feel free to correct me here, but I believe when the dynamic component is downloaded, I don't think that always happens where the dynamic function is called. I think NextJS will optimize where its bundled, so it might already be downloaded; just not used.
Problem
When a user visits my site, I am trying to:
Here is a Mermaid diagram (image below) of the flow.
I've played with the 2 approaches above, but been having trouble getting this case to work.
Questions
Overall, does anybody recommend approaching this a specific way?
revalidatePath
and suspect that may be another approach. Has anybody been able to get something like this to work withrevalidatePath
?Beta Was this translation helpful? Give feedback.
All reactions