What is the use case of vanX.stateFields
?
#236
Answered
by
Tao-VanJS
jeffreyyoung
asked this question in
Q&A
-
I noticed this function in the docs, but from reading the docs, I'm not sure on when it's useful. I'm really enjoying vanJS, thanks for the library! |
Beta Was this translation helpful? Give feedback.
Answered by
Tao-VanJS
Jan 13, 2024
Replies: 1 comment
-
The underlying mechanism of reactive object is to store a collection of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Tao-VanJS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The underlying mechanism of reactive object is to store a collection of
State
objects (which can be deeply nested as well).vanX.stateFields
is helpful to retrieve these underlyingState
objects so that you can pass them to places whereState
objects are expected.