Skip to content

Can you provide an integration with redux-saga example? #35

Answered by VldMrgnn
well1791 asked this question in Q&A
Discussion options

You must be logged in to vote

I think that the line that might help is here: https://github.com/VldMrgnn/react-redux-saga-query-vite/blob/65dab945f1687be33d40f01ae391dbe7b1fbc3f0/src/state/rootStore.ts#L18C17-L18C17

i.e. in your exmple, something like,

const prepared = prepareStore({
  reducers: rootReducer,
  sagas: { 
      api: api.saga(),
     root: rootSaga
}})

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by well1791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants