Open landorid opened 5 years ago
If you dont use mapProps
, then you can use getUser.loading
or getUser.error
.
If you dont use
mapProps
, then you can usegetUser.loading
orgetUser.error
.
But apparently not within in the render function where Composed is used. I also did not find any documentation that would support this claim.
I would like to use React Adopt with Formik and Apollo Client. I am getting initial form data in
getUser
but first time I am getting emptydata
object withloading
flag, and when the result came back from server,loading
flag turn to false and I get the result. Using following snippet, Formik always initialised with empty array, because rendering Formik doesn't wait for loading=false.Without React Adopt my code looks like this:
How can I achieve it with React Adopt?