Is it possible to use the reduction form in apollo-react-redux application?

I understand that the redux form handles reducers and actions for me, which is a plus. But, as far as I can tell, the data will be returned as JSON on presentation, and the added complexity for my application may be disadvantageous. The redux form workflow seems to contradict the intuition of the apollo graphQL wrapper, which uses the mutation support function and the gql tag in the responsive workflow. Is redux-form the wrong tool to work with, or is there some kind of insight that I don't see? I would like to hear about any alternative tools that others use in the apollo reaction. -Thanks

+5
source share
1 answer

I stand fixed. Redux-form should be used in Apollo-React-Redux.

After some research, I found a minimally invasive way to incorporate the reduction form into the Apollo-React application, if anyone is interested:

https://github.com/jferrettiboke/react-auth-app-example/blob/master/client/src/containers/SignInFormContainer.js

It took 2 lines in my index.js to enable formReducer (as expected) and fetch its signin form and its container.

His container method really worked well with the usual Apollo reaction workflow.

thanks

+11
source

Source: https://habr.com/ru/post/1265506/


All Articles