blog icon indicating copy to clipboard operation
blog copied to clipboard

Gavin/sta 3984 blog post on what is the actor model and when should i use

Open gavination opened this issue 1 year ago • 3 comments

gavination avatar Jun 01 '23 06:06 gavination

STA-3984

linear[bot] avatar Jun 01 '23 06:06 linear[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blog ✅ Ready (Inspect) Visit Preview Jun 2, 2023 1:20pm

vercel[bot] avatar Jun 01 '23 06:06 vercel[bot]

@gavination you’re a great writer! This is brilliant. I’ve made a few small suggestions. I also took the liberty to update the straight quotes ('/") to curly quotes (‘”) via a commit.

Do you think we should link up some of the XState concepts to their relevant pages in the new docs? (V5-specific docs are at https://stately.ai/docs/xstate-v5)

I was wondering if we should provide code examples for both XState V4 and XState V5 here? (We could do this with a tabbed interface in the new blog, see below.) cc @davidkpiano

Once this is ready, we should also look into porting it to the “new” blog (inside the docs) as those will be launched soon!

I like the idea of adding the v4/v5 tabbed examples in general. One other reason that comes to mind for spawning actors is that I found the signature of spawn() to be confusing from the v4 documentation because the 2nd argument can be either a string name or an options object (not sure I saw if that's clearly stated or just implied by various examples). It seems like in v5 this 2nd arg is always an object with an id property. Is this accurate @Andarist @davidkpiano ? Having both examples clearly labeled v4 vs v5 might help to clear this up for readers.

kevinmaes avatar Jun 02 '23 19:06 kevinmaes