Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 5075f34

Browse files
ericravtimdorr
authored andcommitted
Update ImmutableJS instructions (#363)
Took me a while before I realized I needed to convert my Immutable object to a plain object for this to work, so this may help others
1 parent d789e95 commit 5075f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For other kinds of events in your system, you can use middleware on your Redux s
8484
When using a wrapper for your store's state, such as Immutable.js, you will need to change two things from the standard setup:
8585

8686
1. Provide your own reducer function that will receive actions of type `LOCATION_CHANGE` and return the payload merged into state.
87-
2. Pass a selector to access the payload state via the `selectLocationState` option on `syncHistoryWithStore`.
87+
2. Pass a selector to access the payload state and convert it to a JS object via the `selectLocationState` option on `syncHistoryWithStore`.
8888

8989
These two hooks will allow you to store the state that this library uses in whatever format or wrapper you would like.
9090

0 commit comments

Comments
 (0)