UNPKG
navigation-stack
Version:
latest (0.5.3)
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Handles navigation in a web browser
gitlab.com/catamphetamine/navigation-stack
navigation-stack
/
src
/
redux
/
internalLocationReducer.js
10 lines
(8 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
ActionTypesInternal
from
'./ActionTypesInternal'
;
export
default
function
internalLocationReducer
(
state, action
) {
// eslint-disable-next-line no-underscore-dangle
if
(action.
type
===
ActionTypesInternal
.
INTERNAL_LOCATION_UPDATE
) {
return
action.
payload
; }
return
state; }