-
|
i have some components that i want to render base on viewport dimensions
option 2 seems simpler, but i don't know to achieve this in leptos, if it's possible |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Effects run after hydration. So something like this: let (value, set_value) = signal(/* the default value */);
Effect:: new(move || {
set_value.set(/* the client value */);
}); |
Beta Was this translation helpful? Give feedback.
-
|
so i can pass the write signal around to be configured and see effect of data change in the component that are using read signal |
Beta Was this translation helpful? Give feedback.
Effects run after hydration. So something like this: