Question regarding TodoMVC React example #1298
-
Hi. In the TodoMVC React example, I notice that todo item data are in both todosMachine and individual todoMachine. Is there a reason for this as it seems to cause unnecessary re-render? E.g. when I edit a todo, I don't expect both todo list and other todos to rerender. I'm still new to XState so please ignore if I missed anything. |
Beta Was this translation helpful? Give feedback.
Answered by
davidkpiano
Jul 12, 2020
Replies: 1 comment
-
This is using an older version of XState and |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
universse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is using an older version of XState and
@xstate/react
. Keep on the lookout for an updated (and more optimized) version when@xstate/react
version 1 comes out!