Subscriptions (like Elm)? #2821
Twister915
started this conversation in
General
Replies: 1 comment 1 reply
-
You can have subscriptions in Yew. Take the timer example setting up an interval, which repeatedly sends an update message every second. The difference is that in a procedural language, it's easiest to represent this as an additional field on the component that you initialize during component creation instead of an additional special |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I was an avid Elm user, and I see that Yew is inspired by Elm. Curious why timers, which would be subscriptions in Elm, aren't handled in the same way by Yew?
More of a philosophical question than a practical one- I really liked that abstraction
Beta Was this translation helpful? Give feedback.
All reactions