Questions tagged [redux-immutable]

12 questions
7
votes
1 answer

React Redux Loading Bar not showing up

I have a problem with using React Redux Loading Bar.it is not showing up.I'm using immutable js, redux immutable library in root reducer.I don't get any errors. If I inspect elements tree, there is only one empty div. what mistake am I making…
Ashok
  • 976
  • 3
  • 15
  • 32
4
votes
1 answer

Correct setup of redux-persist v5 with react boilerplate

I have been trying to setup redux-persist 5.9.1 with reactboilerplate 3.4.0 framework. The error I receive seems to related to redux-immutable and I am unable to figure out right configuration. Here is what I have done so far: 1. Install NPM npm i…
absqueued
  • 3,013
  • 3
  • 21
  • 43
3
votes
2 answers

How to use combineReducers with handleActions

I'm trying to create new reducer survey, which must combine name and questions reducers while using handleActions from redux-actions package. But I recieve an error Invariant Violation: Expected handlers to be a plain object. How should I change it…
3
votes
2 answers

How to get type of `rootReducer`?

I have a configured project with React, Redux, Immutable.js + TypeScript. During implementation I was trying to declare types as much as possible and found interesting issue. See code example below: Short configuration of redux store import {…
Roman Mahotskyi
  • 4,576
  • 5
  • 35
  • 68
3
votes
2 answers

Error when using redux-persist with redux-immutable

I try to use redux-immutable with redux-persist. I searched for a lot, but I didn't find any solutions to resolve this issue. store.js: import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from…
Soroush Chehresa
  • 5,490
  • 1
  • 14
  • 29
3
votes
2 answers

redux-immutable mapStateToProps props empty

I'm updating my first react/redux app to use redux-immutable and can't figure out why the props in mapStateToProps are empty. I see the properties populated in the thunk logger output but they are empty in the…
neridaj
  • 2,143
  • 9
  • 31
  • 62
1
vote
2 answers

Redux-Saga using Immutable.js and state is always empty

I am trying to wrap my head around redux and sagas and I think I have set something up wrong and i'm hoping someone can lend some insight. I have created my store with my inital state and I dispatch an action, as seen here: const initialState =…
1
vote
2 answers

Using Redux.createStore with Immutable throws "reducer is not a function (How to use Redux with Immutable.js ans composeEnhancers)

I wrote this code to create Redux store: import {combineReducers} from 'redux-immutable' const MyAppReducers = combineReducers({ Node1: Node1Reducer, Node2: Node2Reducer, Node3: Node3Reducer, Node4: Node4Reducer }) let store =…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
1
vote
0 answers

get multiple property from a reducer in redux-immutable

I'm using redux-immutable and need to connect() multiple property in my component. this is gameStore reducer initialState: const initialState = Immutable.fromJS({ isPlaying: null, level: 0, remainTime: 120, nextLevelUp: 40 , …
Emad Emami
  • 6,089
  • 3
  • 28
  • 38
1
vote
1 answer

Is redux-immutable useful?

I came across redux-immutable from official redux.js git book. It sounds pretty awesome, but how useful is it? Noting: I love immutable js, that's why I'm even considering it. Looking at its official documentation, I feel it has more con than pro,…
N.Xu
  • 131
  • 1
  • 7
0
votes
1 answer

Set state of reducer and its sub-reducers when using combineReducers

I'm expanding the functionality of a local-only React app to hook into an API. Here is my code before the refactor. You'll see I'm setting initial state from a global window variable, INIT_STATE, which also includes some other root-level…
aesterisk_
  • 329
  • 4
  • 15
0
votes
1 answer

Immutable JS: updating the nested dynamic object

My initial state is, export const initialState = fromJS({ current: {}, page: { loading: false, isFirstLoaded: false, }, meta: {}, }); In My reducer, since I have defined the nested structure for page, state.setIn(['page',…
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51