#How to get the current state value within `entry`

1 messages · Page 1 of 1 (latest)

upbeat salmon
#

I'm persisting on enter to certain states, and I was going to include self.getSnapshot().value in the log, but it seems like this shows the previous state before the transition has completed. Is there another way to get this, or to push the entry execution until the transition has finished?

Slightly unrelated:
I also have tried subscribing to the actor and persisting snapshots based on tags. (Use case is, not all states should be persisted, and some states should actually clear persistence)

halcyon birch
#

We were just thinking about a "post-transition" hook in #💡-ideas

#

You can do this in actor.subscribe(...)