({
inspector,
Example,
}: {
inspector: BrowserInspector | undefined;
Example: ExampleComponent;
})
| 95 | }); |
| 96 | |
| 97 | function InspectorSetter({ |
| 98 | inspector, |
| 99 | Example, |
| 100 | }: { |
| 101 | inspector: BrowserInspector | undefined; |
| 102 | Example: ExampleComponent; |
| 103 | }) { |
| 104 | const actorOptions: ActorOptions<AnyActorLogic> | undefined = |
| 105 | inspector === undefined |
| 106 | ? undefined |
| 107 | : { |
| 108 | inspect: inspector.inspect as any, |
| 109 | }; |
| 110 | |
| 111 | return <Example actorOptions={actorOptions} />; |
| 112 | } |
| 113 | |
| 114 | export function AppExampleSandbox({ Example }: { Example: ExampleComponent }) { |
| 115 | const [state, send] = useActor(inspectorLauncherMachine); |
nothing calls this directly
no outgoing calls
no test coverage detected