File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,12 @@ Deletes the current user from the storage/cookies
151
151
152
152
## Immutable JS
153
153
Usage of ` redux-react-session ` with an immutable store is really simple.
154
- Instead of the ` sessionReducer ` import the ` sessionImmutableReducer ` , as the following example:
154
+ Instead of the ` sessionReducer ` import the ` sessionReducer ` from ` redux-react-session/immutable ` , as the following example:
155
155
156
156
- Add the session reducer:
157
157
``` javascript
158
158
import { combineReducers } from ' redux' ;
159
- import { sessionImmutableReducer as session } from ' redux-react-session' ;
159
+ import { sessionReducer as session } from ' redux-react-session/immutable ' ;
160
160
161
161
const reducers = {
162
162
// ... your other reducers here ...
Original file line number Diff line number Diff line change
1
+ const immutableReducer = require ( './dist/immutableReducer' ) ;
2
+
3
+ export const sessionReducer = immutableReducer . default ;
Original file line number Diff line number Diff line change 9
9
invalidSession
10
10
} from './actions' ;
11
11
import reducer from './reducer' ;
12
- import immutableReducer from './immutableReducer' ;
13
12
14
13
let instance ;
15
14
@@ -261,4 +260,3 @@ export class sessionService {
261
260
}
262
261
263
262
export const sessionReducer = reducer ;
264
- export const sessionImmutableReducer = immutableReducer ;
You can’t perform that action at this time.
0 commit comments