Skip to content

Commit

Permalink
Remove a mention of the removed execute option from the types
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Nov 7, 2023
1 parent 74179ee commit 51c20bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1669,10 +1669,6 @@ export interface StateConfig<
}

export interface ActorOptions<TLogic extends AnyActorLogic> {
/**
* Whether state actions should be executed immediately upon transition. Defaults to `true`.
*/
execute?: boolean;
clock?: Clock;
logger?: (...args: any[]) => void;
parent?: ActorRef<any, any>;
Expand Down
14 changes: 0 additions & 14 deletions packages/xstate-solid/test/useMachine.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ describe('useMachine hook', () => {
render(() => <Test />);
});

it('should provide options for the service', () => {
const Test = () => {
const [, , service] = useMachine(fetchMachine, {
execute: false
});

expect(service.options.execute).toBe(false);

return null;
};

render(() => <Test />);
});

it('should accept input', () => {
const testMachine = createMachine({
types: {} as {
Expand Down

0 comments on commit 51c20bc

Please sign in to comment.