Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 1ba54c5

Browse files
committed
Merge branch 'master' of github.com:davidkpiano/react-redux-form
2 parents 771119e + d7d2ea7 commit 1ba54c5

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Join the chat at https://gitter.im/react-redux-form/Lobby](https://badges.gitter.im/react-redux-form/Lobby.svg)](https://gitter.im/react-redux-form/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44
[![Build Status](https://travis-ci.org/davidkpiano/react-redux-form.svg?branch=master)](https://travis-ci.org/davidkpiano/react-redux-form) [![npm version](https://badge.fury.io/js/react-redux-form.svg)](https://badge.fury.io/js/react-redux-form)
55

6-
## [🆕 Read the Documentation](https://davidkpiano.github.io/react-redux-form)
6+
## [🆕 Read the Documentation](https://davidkpiano.github.io/react-redux-form/docs.html)
77

88
Or, if you're using an old version, [read the v0.14.x documentation](https://davidkpiano.gitbooks.io/react-redux-form/content/)
99

docs/api/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ The "touched" state indicates that this model has been interacted with.
368368

369369
<h2 id="actions-setUntouched"></h2>
370370
## `actions.setUntouched(model)`
371-
Returns an action that, when handled by a [`formReducer`](TODO), changes the `.touched` state to `true`.
371+
Returns an action that, when handled by a [`formReducer`](TODO), changes the `.touched` state to `false`.
372372

373373
An "untouched" field indicates that this model has not been interacted with yet.
374374

examples/immutable/components/submit-button.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ SubmitButton.propTypes = {
1111
user: React.PropTypes.instanceOf(Immutable.Map).isRequired,
1212
};
1313

14-
const mapStateToProps = (state) => ({ user: state.get('user') });
14+
const mapStateToProps = (state) => {
15+
// Enable one of the two:
16+
return { user: state.user }; // Enable when using redux
17+
// return { user: state.get('user') }; // Enable when using redux-immutable
18+
};
1519

1620
export default connect(mapStateToProps)(SubmitButton);
1721

examples/immutable/store.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import {
33
createStore,
44
applyMiddleware,
55
} from 'redux';
6-
import { combineReducers } from 'redux-immutable';
6+
7+
// Enable one of the two:
8+
import { combineReducers } from 'redux';
9+
//import { combineReducers } from 'redux-immutable';
10+
711
import { createForms } from 'react-redux-form/immutable';
812
import thunk from 'redux-thunk';
913
import Immutable from 'immutable';

0 commit comments

Comments
 (0)