React Server Components support #46
Replies: 7 comments 3 replies
-
Hi @fellipeutaka, I totally understand your concern. I'm open to any solution that doesn't involve a breaking change to any APIs, but I don't think we would consider taking away I have not built anything with Next13+ or RSC, but it seems like it could be possible with a non-React-based state management library? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Also, I'm curious if this is an actual issue, or more just a principle thing? Icons are, 99.9% of the time, leaf nodes in the React tree. What is the real overhead of shipping a bit of JavaScript per icon vs. a marginal amount less of pre-rendered HTML? |
Beta Was this translation helpful? Give feedback.
-
Also, just to clarify, are you saying that Phosphor doesn't work when used in server components, or just that it is an obligate client component and you would like for it to be rendered on the server? I'd definitely focus on fixing the former right away if that is an issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have a working solution with #47 but I have no clue whether it is a good idea to be shipping non-isomorphic components like this. The same DOM nodes should ultimately be rendered by both a |
Beta Was this translation helpful? Give feedback.
-
An experimental build is now live on NPM under version |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
I'm a user of the Phosphor icons library, and I'm writing to discuss the possibility of adding support for server components.
Currently, the library only supports client components because the icons use forwardRef and useContext. However, I believe that adding support for server components would greatly improve the accessibility and performance of the library, especially for server-rendered applications.
I would like to propose that we work together to add support for server components to the Phosphor icon library. I understand that this would require some changes to the library's architecture, but I believe that the benefits would be worth the effort.
What do you think? Are you open to discussing this further and exploring the possibility of adding support for server components in Phosphor?
Thank you for your time and consideration.
Beta Was this translation helpful? Give feedback.
All reactions