How to have a initial state value? #37
Answered
by
alilee
Vilayat-Ali
asked this question in
Q&A
-
So I am new to this yew ecosystem. While making apps using yew, I found Yewdux to manage the state of my app. Unlike redux where we enter a initialState value in our store, can we enter initial state values in a Yewdux store too? Like without the need to initialize separately in a component? |
Beta Was this translation helpful? Give feedback.
Answered by
alilee
Sep 27, 2022
Replies: 1 comment
-
Stores will take their |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
intendednull
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stores will take their
Default
value, so justimpl Default
for the Type of your Store. There is a little more detail in the book here.