mattpocock / xstate-catalogue

Professionally designed, interactive state machines
https://xstate-catalogue.com
MIT License
811 stars 62 forks source link

fix(simple-data-fetch): add machine context #59

Closed timdeschryver closed 3 years ago

timdeschryver commented 3 years ago

I copy-pasted the simple-data-fetch example, but the context wasn't updated after a data fetch with the warning Warning: Attempting to update undefined context. This change adds an initial context to the machine, so it's "copy-pastable".

Also, since I got the opportunity now... Thanks for these awesome examples 👍

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mattpocock/xstate-catalogue/2DSUYkZhnmZJdkW1fC54kWbyvwfa
✅ Preview: https://xstate-catalogue-git-fork-timdeschryver-patch-1-mattpocock.vercel.app

mattpocock commented 3 years ago

@all-contributors please add @timdeschryver for code

allcontributors[bot] commented 3 years ago

@mattpocock

I've put up a pull request to add @timdeschryver! :tada:

mattpocock commented 3 years ago

Thanks for the fix!