In my projects, Redux Thunk is used to store all asynchronous functions in action creators.
Now I'm trying to add Apollo GraphQL to my project, everything works fine, except that when adding mutations to my functional Component and calling them there, it breaks the redux thunk architecture.
How to solve it? I believe that I can create new methods for creating actions and pass mutations to them, but soon it will become a template, and it just doesn’t work for me.
source
share