futurice / futurice/pepperoni-app-kit

Work with reducers from packages such as apollo stack/redux-form

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

Apollo stack has to check apollo reducer in combined reducer, in redux-loop way, reducer is been transformed into immutable way.
The same problem happened when using redux-form

```
import {createStore, combineReducers} from 'redux';
import {reducer as formReducer} from 'redux-form';
const reducers = {
// ... your other reducers here ...
form: formReducer // <---- Mounted at 'form'. See note below.
}
const reducer = combineReducers(reducers);
const store = createStore(reducer);

```

Is there any way to separate the imported reducer to use no immutable way?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the combined reducer and the redux-loop transformation described in the issue, then reproduce the behavior with the Apollo and redux-form reducer examples. Done means determining whether imported reducers can remain non-immutable while being combined, and documenting or implementing a supported separation if needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native, redux
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.