state.toStrings() should be state.path? #1299
-
Why is the name chosen based on the data type and not the content? https://xstate.js.org/docs/guides/states.html#state-tostrings |
Beta Was this translation helpful? Give feedback.
Answered by
davidkpiano
Jul 12, 2020
Replies: 1 comment
-
Because "path" is not accurate. A state doesn't have a single path; it is the combination of many state nodes (the state's "configuration"), each of which has a path. So if you want to rename it, it would be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
NikitaIT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because "path" is not accurate. A state doesn't have a single path; it is the combination of many state nodes (the state's "configuration"), each of which has a path. So if you want to rename it, it would be
state.paths
.