Skip to content

having problem with getting rid of proxy #403

@piotr-kozlowski-reps

Description

@piotr-kozlowski-reps

I have problem with getting into plain data object via state.get() method.

Here's a small getter to have value out of hookstate:

    getCyclicalActivityFormikDataForPUT() {
      return state.get({ noproxy: true, stealth: true })
        .cyclicalActivityFormikDataForPUT;
    },

I also tried:

    getCyclicalActivityFormikDataForPUT() {
      return state.cyclicalActivityFormikDataForPUT.get({
        noproxy: true,
        stealth: true,
      });
    }

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedbackPositive customer's feedback which does not fall into other categories

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions