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

Commit 6a9f0d2

Browse files
committed
Merge pull request #191 from rackt/rename-sync
rename syncHistoryToStore to listenForReplays
2 parents 2db2ced + ec19813 commit 6a9f0d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/basic/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const finalCreateStore = compose(
3131
DevTools.instrument()
3232
)(createStore);
3333
const store = finalCreateStore(reducer);
34-
middleware.syncHistoryToStore(store);
34+
middleware.listenForReplays(store);
3535

3636
ReactDOM.render(
3737
<Provider store={store}>

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function syncHistory(history) {
7070
}
7171
}
7272

73-
middleware.syncHistoryToStore =
73+
middleware.listenForReplays =
7474
(store, selectRouterState = SELECT_STATE) => {
7575
const getRouterState = () => selectRouterState(store.getState())
7676
const { location: initialLocation } = getRouterState()

test/createTests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
185185
}))
186186
devToolsStore = store.liftedStore
187187

188-
middleware.syncHistoryToStore(store)
188+
middleware.listenForReplays(store)
189189
})
190190

191191
afterEach(() => {

0 commit comments

Comments
 (0)