Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jun 14:17
· 3123 commits to main since this release
c3af2a7

Minor Changes

  • 724baae7 #2230 Thanks @santicros! - Added new composable useSelector(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 };
      }
    };