Refactor combineState function to accept up to 10 states (you can add more, but it is only typed up to 10), and to return an array with all the values. The combine into a separate value, one should use useValueSelector, or just useValue regularly (maybe even useValueIterator).
Description
Refactor
combineState
function to accept up to 10 states (you can add more, but it is only typed up to 10), and to return an array with all the values. The combine into a separate value, one should useuseValueSelector
, or justuseValue
regularly (maybe evenuseValueIterator
).