How spotify/redux-location-state works
redux-location-state synchronizes configured Redux state with URL query parameters. Its main workflow serializes changed state into history updates, and parses popped locations back into Redux through a caller-provided reducer. The graph shows the source and compiled runtime variants because both appear as substantial core modules in the source index. Relationships are limited to those shown in excerpts or documented in the README; the history listener implementation was not excerpted.
Main entry points: src/createReduxLocationActions.js Location actions · lib/createReduxLocationActions.js Location actions · stateToParams.js State serializer · parseQuery.js Query parser
Components 14
Other components
- Redux app
- Router history
- Location actions
src/createReduxLocationActions.js - History listener
src/listenForHistoryChange.js - State serializer
src/stateToParams.js - Query parser
src/parseQuery.js - Type codecs
src/typeHandles.js - URL helpers
src/helpers.js - Location actions
lib/createReduxLocationActions.js - History listener
lib/listenForHistoryChange.js - State serializer
lib/stateToParams.js - Query parser
lib/parseQuery.js - Type codecs
lib/typeHandles.js - URL helpers
lib/helpers.js
Connections 20
- Location actions → State serializer: serializes state via
src/createReduxLocationActions.js - Location actions → Router history: updates history
src/createReduxLocationActions.js - Location actions → Query parser: parses popped URL
src/createReduxLocationActions.js - Location actions → Redux app: wraps reducer
src/createReduxLocationActions.js - History listener → Router history: watches changes
README.md - History listener → Redux app: dispatches location
README.md - State serializer → URL helpers: uses helpers
src/stateToParams.js - State serializer → Type codecs: uses codecs
src/stateToParams.js - Query parser → URL helpers: uses helpers
src/parseQuery.js - Query parser → Type codecs: uses codecs
src/parseQuery.js - Location actions → State serializer: serializes state via
lib/createReduxLocationActions.js - Location actions → Router history: updates history
lib/createReduxLocationActions.js - Location actions → Query parser: parses popped URL
lib/createReduxLocationActions.js - Location actions → Redux app: wraps reducer
lib/createReduxLocationActions.js - History listener → Router history: watches changes
README.md - History listener → Redux app: dispatches location
README.md - State serializer → URL helpers: uses helpers
lib/stateToParams.js - State serializer → Type codecs: uses codecs
lib/stateToParams.js - Query parser → URL helpers: uses helpers
lib/parseQuery.js - Query parser → Type codecs: uses codecs
lib/parseQuery.js