Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawning self-stopping jobs #15

Open
marcusstenbeck opened this issue Jan 25, 2022 · 0 comments
Open

Spawning self-stopping jobs #15

marcusstenbeck opened this issue Jan 25, 2022 · 0 comments

Comments

@marcusstenbeck
Copy link

marcusstenbeck commented Jan 25, 2022

I've attempted to spawn child-actors that complete and then stop themselves. It's based on the "watching" test. After spawning 3 messages there's an exception:

TypeError: Cannot read properties of undefined (reading '$$tag')
    at Actor.process (Actor.ts:127)
    at Actor.flush (Actor.ts:177)
    at Actor.receive (Actor.ts:113)
    at ActorRef.send (ActorRef.ts:31)
    at ActorSystem.send (ActorSystem.ts:35)
    at eval (VM72 index.tsx:35)
    at onSubmit (VM72 index.tsx:92)
    at HTMLUnknownElement.callCallback (react-dom.development.js:158)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:198)
    at invokeGuardedCallback (react-dom.development.js:244)

Here's the live example: https://stackblitz.com/edit/react-ts-4ehstb?devtoolsheight=33&file=index.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant