Skip to content

Commit

Permalink
Add deprecation notice in Provider (#4413)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano authored Nov 3, 2023
1 parent 74baddc commit b07b5ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/xstate-react/src/createActorContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export function createActorContext<TLogic extends AnyActorLogic>(
props: {
children: React.ReactNode;
options?: ActorOptions<TLogic>;
/**
* @deprecated Use `logic` instead.
*/
machine?: never;
} & (TLogic extends AnyStateMachine
? AreAllImplementationsAssumedToBeProvided<
TLogic['__TResolvedTypesMeta']
Expand Down

0 comments on commit b07b5ea

Please sign in to comment.