Update `State` to allow multiple mutable references to distinct components without `MutState`
Closed this issue · 0 comments
Saethox commented
The API we currently have is kind of weird, with State
, MutState
and MultiStateTuple
, so we might want to integrate this a little bit more. I'm thinking of a State
that allows borrowing multiple CustomState
wrapped in some sort of Ref
and RefMut
at the same time, or a single CustomState
as &mut
, or a tuple of distinct CustomState
s as (&mut, &mut, ...)
.
I have no idea if this really is better, but the current state should not be permanent.