Mateusz Burzyński
Mateusz Burzyński
I think I stand by what I described in: https://github.com/statelyai/xstate/pull/4677#issuecomment-1893545070 . To improve the situation here we'd have to actor-ify the system further. Its current snapshot should be cached, each...
> Would we move children, keyedActors, reversedKeyedActors into one object? Not necessarily. I'd like to keep the snapshot as lean as possible so it should only be extended with `actors`...
> For "on stop", which is still an important "event" to listen for Why? 😉 Whenever I think about it, I always conclude that I wouldn't ever want to listen...
> @Andarist what should we do with this? This might have already been addressed in the meantime. Could you sync with `main`? Its CI is already using node 20
It might not be super clear (so we should think about what to do about it) but you should persist the snapshot **before** stopping the actor. The problem is that...
I agree, `| InitEvent` should be added "on demand" by the consumer of the type when needed. It shouldn't be hardcoded in the `ActionFunction` type
superseded by https://github.com/statelyai/xstate/pull/4863
This is something that we'd likely want to pull in but it's a purely additive change and it can wait to be done after the v5 release.
This one is quite hard to fix - as mentioned on Discord. So far I failed to figure out anything but I'll continue trying.
So I got *some* news. I managed to provide the contextual parameter type in a situation like this in a standalone repro of the problem: [TS playground](https://www.typescriptlang.org/play?ts=5.4.0-dev.20231211#code/C4TwDgpgBAcg9gSQHYDMICcA8AVAfFAXigG1sBdUqCAD2AiQBMBnKAQyRCgH4oAGKAFxQkEAG4YyAbgBQoSFABqrADYBXCExz4i2YgGsIIOCijkZ0gJZI66FKwDG0AAqt0rALYQbFgF4QGAPIARgBWEPbAUADe0lBQchBCTMDoVgDmMnFgrh5MXEKqSHpIcADuSDIAvtKW1hh2jlAA4qquDE7o-hb2rHSYsaYAwnB1tAA0A9gubu5ME3HYLW1UtPTMUNMeXhi+-sFhERP4MXEAFBHUQtjDo8BjUNkzTFebswCUQkFwcMoQ7JlQAD6cFUwEBi1a6AY+VMSyhVRqCVMcFe21SfkCoXCwH6C1R3gxAFlWGAVnRGCwAErhOBQ3FxKDJVJINLzBn4nYY-bY4gAIkeuV5ZCgAB8oIUGBAUFZ-ANcEdCIoVOpNCcSABpKBWKAGIwmKY5TwE-zE0kAMgGcSZ6TIBUYUplDD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