Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
04e46cbf
Unverified
Commit
04e46cbf
authored
Jul 22, 2023
by
兰天游
Committed by
GitHub
Jul 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: remove unused global variable (#51767)
parent
94878fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
store.ts
examples/with-redux/lib/redux/store.ts
+1
-16
No files found.
examples/with-redux/lib/redux/store.ts
View file @
04e46cbf
/* Core */
/* Core */
import
{
import
{
configureStore
,
type
ThunkAction
,
type
Action
}
from
'@reduxjs/toolkit'
configureStore
,
type
ConfigureStoreOptions
,
type
ThunkAction
,
type
Action
,
}
from
'@reduxjs/toolkit'
import
{
import
{
useSelector
as
useReduxSelector
,
useSelector
as
useReduxSelector
,
useDispatch
as
useReduxDispatch
,
useDispatch
as
useReduxDispatch
,
...
@@ -15,16 +10,6 @@ import {
...
@@ -15,16 +10,6 @@ import {
import
{
reducer
}
from
'./rootReducer'
import
{
reducer
}
from
'./rootReducer'
import
{
middleware
}
from
'./middleware'
import
{
middleware
}
from
'./middleware'
const
configureStoreDefaultOptions
:
ConfigureStoreOptions
=
{
reducer
}
export
const
makeReduxStore
=
(
options
:
ConfigureStoreOptions
=
configureStoreDefaultOptions
)
=>
{
const
store
=
configureStore
(
options
)
return
store
}
export
const
reduxStore
=
configureStore
({
export
const
reduxStore
=
configureStore
({
reducer
,
reducer
,
middleware
:
(
getDefaultMiddleware
)
=>
{
middleware
:
(
getDefaultMiddleware
)
=>
{
...
...
Write
Preview
Markdown
is supported
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