mattpocock / xstate-catalogue

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

Added unique key props and machineHelper: Guard #34

Closed damiensedgwick closed 3 years ago

damiensedgwick commented 3 years ago

This PR removes the console error for giving items a unique key prop, I noticed this when developing locally however could not reproduce in production.

I also noticed that when when mapping of guards, we assigned them to an action rather than a guard for which I created a machineHelper for and implemented this in the mapped guards.

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/EuUXob71DETvNm3DLmiwEBAj6sHF
✅ Preview: https://xstate-catalogue-git-fork-damiensedgwick-master-mattpocock.vercel.app

mattpocock commented 3 years ago

LGTM! Thanks buddy :)

mattpocock commented 3 years ago

@all-contributors please add @damiensedgwick for code

allcontributors[bot] commented 3 years ago

@mattpocock

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