github-actions
released this
25 Jun 14:17
·
3123 commits
to main
since this release
Minor Changes
-
724baae7
#2230 Thanks @santicros! - Added new composableuseSelector(actor, selector)
, which subscribes to actor and returns the selected state derived from selector(snapshot):import { useSelector } from '@xstate/vue'; export default { props: ['someActor'], setup(props) { const count = useSelector(props.someActor, state => state.context.count); // ... return { count }; } };