I've been just starting to use react-robot in React 18, and I noticed that the "current" property provided from the hook "useMachine" doesn't update when I call "send('next')".
The code used is the one from the documentation:
import { useMachine } from 'react-robot';
import React from 'react';
import { createMachine, state, transition } from 'robot3';
Found a way to solve it, by replacing mounted = true by const [isMounted, setIsMounted] = useState(true); of createUseMachine function in the library robot-hooks
Hello Creator of react-robot,
I've been just starting to use react-robot in React 18, and I noticed that the "current" property provided from the hook "useMachine" doesn't update when I call "send('next')". The code used is the one from the documentation:
Any idea on how to solve this? Thank you