Support for SSR #75
Replies: 3 comments 3 replies
-
@monolithed, please be more specific. What is that you want to do, and you're unable to do it, or is the limited functionality preventing you from doing it? |
Beta Was this translation helpful? Give feedback.
-
@ArtyomVancyan, first, I format the data on the client side to display it to the user. Then I send the raw data to the server to generate a PDF file. I keep the phone numbers unformatted because they come from different sources. As far as I can tell, the formatting functions can be moved to a separate file so they can be reused outside. Besides, with the current setup, SSR wouldn't work either. |
Beta Was this translation helpful? Give feedback.
-
The functions can be reused outside the hooks (I am not sure what you mean by outside). The SSR compatibility was implemented back in #30 and is used by many users as a second dependency in antd-phone-input and mui-phone-input packages. I know none of these answers your question, and that is because I don't know its context. Please include code examples and be more specific about the issues. (e.g. here is the code I tried to do this the following way... but I got this unexpected error) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to separate the formatting functions so they can be reused in the SSR code.
Beta Was this translation helpful? Give feedback.
All reactions