Replies: 1 comment
-
|
StatefulComponents on the server don't really do anything. Because on the server only a single build is performed, meaning any Though as you correctly said, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For beginners,
StatefulComponents kinda creates confusion when a it doesn't work/behave the way it is intended. e.g.,setStatenot working (because@clientwas missing).The above is neither a bug nor a bad design IMO. However,
StatefulComponents are used when state is being played around with, which only happens with a client, no?To be noted that I've only used Jaspr for SSG so far, not SSR. Hence, I am not sure if
StatefulComponents are/do get used to deal with the logic of the server itself. It looks very possible but I couldn't think of a pragmatic situation myself. May I request some example cases? Maybe one with@syncon top of theStatefulComponentis one where it might be helpful.Beta Was this translation helpful? Give feedback.
All reactions