Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Headlamp
Commits
292d4047
Commit
292d4047
authored
3 years ago
by
René Dudfield
Browse files
Options
Download
Email Patches
Plain Diff
frontend: Fix redux integration for redux tools
parent
ac824f9e
redux-extension
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/redux/stores/store.tsx
+8
-2
frontend/src/redux/stores/store.tsx
with
8 additions
and
2 deletions
+8
-2
frontend/src/redux/stores/store.tsx
+
8
-
2
View file @
292d4047
import
{
applyMiddleware
,
createStore
}
from
'
redux
'
;
import
{
applyMiddleware
,
compose
,
createStore
}
from
'
redux
'
;
import
createSagaMiddleware
from
'
redux-saga
'
;
import
{
INITIAL_STATE
as
CONFIG_INITIAL_STATE
}
from
'
../reducers/config
'
;
import
{
INITIAL_STATE
as
FILTER_INITIAL_STATE
}
from
'
../reducers/filter
'
;
...
...
@@ -14,7 +14,13 @@ const initialState = {
const
sagaMiddleware
=
createSagaMiddleware
();
const
store
=
createStore
(
reducers
,
initialState
,
applyMiddleware
(
sagaMiddleware
));
const
composeEnhancers
=
(
window
as
any
).
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
||
compose
;
const
store
=
createStore
(
reducers
,
initialState
,
composeEnhancers
(
applyMiddleware
(
sagaMiddleware
))
);
export
default
store
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help