Questions tagged [redux-logic]

redux-logic is Redux middleware for organizing all your business logic. Intercept actions and perform async processing.

8 questions
2
votes
2 answers

Redux Middleware And GraphQL

Ok, As per my understanding we use middleware in redux for all the async calls now from Apollo documentation we can directly use queries and mutation inside our component. I personally thought that writing all the business logic in a separate place…
Sparsh
  • 247
  • 1
  • 12
2
votes
2 answers

How to make typesafe-actions work with redux-logic transform?

Redux-logic provides a method called transform, which allows actions to be transformed before they reach the reducers. This is helpful for various situations. Typically I want to dispatch an action which has only my user input, and sometimes my…
rm.rf.etc
  • 884
  • 2
  • 8
  • 20
1
vote
2 answers

redux - Best way to handle action calls out of component while on 'dirty' state?

I'm using redux-logic to handle the business logic of my react-redux app. I have component A with some fields. outside of this component, I have other components, that a user can click on them, and call actions. while do some things in component A,…
naro
  • 31
  • 6
0
votes
1 answer

Sending API calls using axios is not successful

I'm a beginner to React Redux and Redux-logic...I'm getting this error when trying to send a PUT request...I'm using Ducks as well and my code (services.js) as following.. import { createLogic } from "redux-logic"; import actions from…
0
votes
0 answers

Update a row in React Table

I am trying to update a row in react table using redux logic.The following is the action that I am calling in the component. handleEdit = () => { this.setState({ id: this.state.id, name: this.state.name, uid: this.state.uid, …
Ruks
  • 75
  • 1
  • 9
0
votes
1 answer

How can i pass a value to an action using redux logic

I've got an action that looks like this export const setTokenTimeout = date => ({ type: SET_TOKEN_TIMEOUT, date And I want to dispatch it inside of some middleware using Redux Logic, which looks like this const requestLogin = createLogic({ type:…
Christopher Mellor
  • 470
  • 2
  • 9
  • 23
0
votes
1 answer

Redux-logic subscription cancel for given subscriber

I am trying to implement subscriptions with redux-logic middleware. The idea is following: when data is fetched from server, to call callback for each subscriber passing fetched data as arguments. // logic/subscriptions.js const fetchLatestLogic =…
-1
votes
1 answer

Sending API calls using React JS, Redux, and Redux Logic

I'm a quite beginner to React and Redux..I want to verify that, in developing React and Redux based applications along with redux-logic, it's not essential to have a separate backend to handle the API calls yeah?? Is it because we already have…