Tag: redux-toolkit
-
How to set initialState using Redux Toolkit with data using Apollo’s useQuery?
0 I am trying to call the useQuery hook (something not allowed outside of functional components), in a redux toolkit slice. Is this something that is doable, perhaps using createAsyncThunk or some similar method? My application is built with the MERN stack, so my database is MongoDB, and I’m using Graphql to fetch the data.…