Open piotr-kozlowski-reps opened 1 year ago
You are doing all right. You get the object but it's type is readonly, which is correct. You are not allowed to change this object. There is a discussion around if ImmutableObject is useful. As of today just to cast to as yourtype
.
ok, I messed up Proxiness and Immutability :) Simple casting did the trick, thank you.
I have problem with getting into plain data object via state.get() method.
Here's a small getter to have value out of hookstate:
I also tried:
but my output is still:
ImmutableObject<ImmutableObject<.....someType>>
and should be just:<.....someType>
What am I doing wrong? help please. I just need plain data object to copy into Formik as initial state.