-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
fix(gatsby): Use xstate predictableActionArguments
& update to 4.34
#36342
Conversation
predictableActionArguments
& update to 4.33
Co-authored-by: Lennart <lekoarts@gmail.com>
@Andarist maybe you can help us out on another one :) gatsby/packages/gatsby/src/state-machines/query-running/index.ts Lines 63 to 81 in 28cfade
When Before it would first do The setup for this is done to grab current batch list ( |
This is essentially a byproduct of how those are concatenated here. I could reverse this but then it wouldn't be possible to do this: entry: send({ type: 'PING' }, { to: 'child' }),
invoke: {
id: 'child',
src: childMachine
} We could introduce more custom logic for this case to fix this though as I think it makes sense in this case for I need to think about the potential implementation in v4 as this is a little bit tricky - it doesn't help that the upcoming v5 has much better architecture internally, with which this wouldn't be a problem at all 😬 |
Please, do let us know wether we should expect changes in this behavior. Maybe consider temporarily disabling the warning that is printed to console about |
I think that I've figured out a potential way forward yesterday. I need to give a try implementing it but I'm hopeful - what you have discovered here was not an intentional change, so I very much would like to fix this for you and other users.
That's a good move for you right now - I won't be able to push a fix today and I don't want to turn off the warning just to enable it again in a couple of days. |
predictableActionArguments
& update to 4.33predictableActionArguments
& update to 4.34
@Andarist heh, it's been a while... I just merged your PRs and update to latest |
This reverts commit 9460dd3.
Let me know if you'd like any further assistance with this. |
I initially merged #36393 but that failed some tests and for now I'm fine with it being not optimal but working :D Appreciate your input and help! |
…gatsbyjs#36342) * update version and fix types * yolo add option * Work around removal of meta.state * Refactor `meta.state` access in `gatsby-source-filesystem` (gatsbyjs#36355) Co-authored-by: Lennart <lekoarts@gmail.com> * fix ts-ignore * Upgrade XState to the latest 4.33.3 (gatsbyjs#36451) * update to latest xstate * Use `pendingQueryRuns` available on the event (gatsbyjs#36393) * Revert "Use `pendingQueryRuns` available on the event (gatsbyjs#36393)" This reverts commit 9460dd3. Co-authored-by: tyhopp <hopp.ty.c@gmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com> Co-authored-by: Ty Hopp <tyhopp@users.noreply.github.com>
Description
Since statelyai/xstate#3289 there's a warning printed to the console now to use this option. Trying this out if tests break 🤷
Also works around removal of
meta.state
property mentioned in:Related Issues
[ch54148]