-
Summaryhow to know if sevrer action is running if it runung in one component , i want to know in anohter one , so I have two component as client component , I want if server action is running from one , the other notify about that , that parent of two components is serve component Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
May 11, 2025
Replies: 1 comment 6 replies
-
Depends on how your component tree is organized, but generally, with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A context provider can wrap both server and client components. The catch is that server components can't access the context, the usual way, but client components can.
This is what the people call interleaving, or composition pattern. For example:
For example here, ThemeProvider is a client component, and that doesn't make
children
client components.children
, which would be a page in this case, can still be a Server Component, which at some p…