Skip to content

Extended State for hisma #16

Answered by tamas-p
phamnhuvu-dev asked this question in Q&A
Discussion options

You must be logged in to vote

First of all thank you for your question. This is one of the areas where I did the minimum effort implementation that satisfies my initial needs for my apps but I am eager to have conversation about how to do it better.

Let's cover first what is there already. Hisma state machines have a dynamic type attribute called data. It can be set in the constructor and later by assigning new value to it anytime - as it is not final. Since it is dynamic you can put into this variable whatever complex data structure you want. I just realized that Hisma README.md does not describe machine.data, I will fix this...

fb_auth_hisma_example is an example Flutter app that demonstrates how an existing Hisma s…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@tamas-p
Comment options

@phamnhuvu-dev
Comment options

@tamas-p
Comment options

@phamnhuvu-dev
Comment options

Answer selected by phamnhuvu-dev
Comment options

You must be logged in to vote
0 replies
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