# xstate/release
XState @xstate/solid@3.0.0-beta.0
importance: highbreakingmigrationfeatureprerelease
The Solid hooks `useActorRef`, `useActor`, and `useMachine` now accept an already-created actor, including one restored with `restoreActor`. The `snapshot` option is removed; hooks start the supplied actor on mount and stop it on unmount. XState v6 is in beta, with no further breaking changes planned for `@public` APIs, while `@experimental` APIs may still change.
affected
Solid users of `useActorRef`, `useActor`, or `useMachine` who rely on the removed `snapshot` option are affected, as are users adopting restored actors.
action
Update code that uses the `snapshot` option to pass an actor restored with `restoreActor` instead.
release_signals
-The `snapshot` option is removed from the hooks; restore an actor with `restoreActor` from `xstate/persist` and pass the actor to a hook instead.
+`useActorRef`, `useActor`, and `useMachine` accept an already-created actor, such as one returned by `restoreActor`.
migration_steps2 steps
- 01Replace use of the removed `snapshot` option with an actor restored using `restoreActor` from `xstate/persist`, then pass that actor to the hook.
- 02Create the actor once per component instance; the hook starts it on mount and stops it on unmount.
code_snippet
import { useActor } from '@xstate/solid';
import { restoreActor } from 'xstate/persist';
function App(props) {
const [snapshot, send] = useActor(restoreActor(machine, props.persisted));
// ...
}# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.