-
Every mitosis component has a state ( I'm curious about this approach, particularly because it generates the following React component:
The problem with this approach is that it disables SSR support for this component, as the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for your question, In version 1.0 the goal was to be able to have everything working in all the platforms and try to have the same feeling in most of the components. Probably to have this setLoaded in a button makes no sense but on other components was really difficult to have the SSR just working. In next iterations we can start to think about element corner cases (example setloading in a button makes no sense) and platform corner cases (example setloading for itchio component in react make no sense but in svelte makes sense). Adding to the list thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm going to investigate in #77 and a release with improvements will be released after 1.1.0 |
Beta Was this translation helpful? Give feedback.
Thanks for your question,
In version 1.0 the goal was to be able to have everything working in all the platforms and try to have the same feeling in most of the components. Probably to have this setLoaded in a button makes no sense but on other components was really difficult to have the SSR just working.
In next iterations we can start to think about element corner cases (example setloading in a button makes no sense) and platform corner cases (example setloading for itchio component in react make no sense but in svelte makes sense).
Adding to the list thanks!