You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
The graphql() (and withMutation()) HOCs currently have a surprising limitation in that the mutation results aren't passed by them, which isn't explained by the docs, and there also isn't an obvious reason for it. The natural expectation from reading the docs would be that HOCs and components would have feature parity (despite HOCs having fallen by the wayside to render props and more recently hooks) and would just be alternative APIs for the same functionality, especially since graphql() delegates to components under the hood. In other words, passing mutation results in withMutation() would follow the principle of least surprise.
The answer also shouldn't be "just use components or hooks"; the reason to pick HOCs currently is that components suffer from "wrapper hell" unless a helper library like react-adopt is used, and that hooks are still immature.
lorenjohnson, robbiecarlton, cihadturhan, danprince, rumtraubenuss and 3 morelorenjohnson, robbiecarlton, cihadturhan, rumtraubenuss, name-k and 1 morelorenjohnson, robbiecarlton, rumtraubenuss, name-k and odragora