Skip to content

How to have a initial state value? #37

Answered by alilee
Vilayat-Ali asked this question in Q&A
Discussion options

You must be logged in to vote

Stores will take their Default value, so just impl Default for the Type of your Store. There is a little more detail in the book here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by intendednull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants