Skip to content

Commit 3fece65

Browse files
committed
WIP Debug incoming middleware
1 parent f9b0a0a commit 3fece65

File tree

2 files changed

+43
-42
lines changed

2 files changed

+43
-42
lines changed

.github/workflows/tests.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -87,43 +87,43 @@ jobs:
8787
- name: Run tests, against dist
8888
run: yarn test
8989

90-
test-types:
91-
name: Test Types with TypeScript ${{ matrix.ts }}
92-
93-
needs: [build]
94-
runs-on: ubuntu-latest
95-
strategy:
96-
fail-fast: false
97-
matrix:
98-
node: ['16.x']
99-
ts: ['4.1', '4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9.2-rc']
100-
steps:
101-
- name: Checkout repo
102-
uses: actions/checkout@v2
103-
104-
- name: Use node ${{ matrix.node }}
105-
uses: actions/setup-node@v2
106-
with:
107-
node-version: ${{ matrix.node }}
108-
cache: 'yarn'
109-
110-
- name: Install deps
111-
run: yarn install
112-
113-
- name: Install TypeScript ${{ matrix.ts }}
114-
run: yarn add typescript@${{ matrix.ts }}
115-
116-
- uses: actions/download-artifact@v2
117-
with:
118-
name: package
119-
path: packages/toolkit
120-
121-
- name: Install build artifact
122-
run: yarn add ./package.tgz
123-
124-
- run: sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json ./jest.config.js ./src/tests/*.* ./src/query/tests/*.*
125-
126-
- name: Test types
127-
run: |
128-
yarn tsc --version
129-
yarn type-tests
90+
# test-types:
91+
# name: Test Types with TypeScript ${{ matrix.ts }}
92+
93+
# needs: [build]
94+
# runs-on: ubuntu-latest
95+
# strategy:
96+
# fail-fast: false
97+
# matrix:
98+
# node: ['16.x']
99+
# ts: ['4.1', '4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9.2-rc']
100+
# steps:
101+
# - name: Checkout repo
102+
# uses: actions/checkout@v2
103+
104+
# - name: Use node ${{ matrix.node }}
105+
# uses: actions/setup-node@v2
106+
# with:
107+
# node-version: ${{ matrix.node }}
108+
# cache: 'yarn'
109+
110+
# - name: Install deps
111+
# run: yarn install
112+
113+
# - name: Install TypeScript ${{ matrix.ts }}
114+
# run: yarn add typescript@${{ matrix.ts }}
115+
116+
# - uses: actions/download-artifact@v2
117+
# with:
118+
# name: package
119+
# path: packages/toolkit
120+
121+
# - name: Install build artifact
122+
# run: yarn add ./package.tgz
123+
124+
# - run: sed -i -e /@remap-prod-remove-line/d ./tsconfig.base.json ./jest.config.js ./src/tests/*.* ./src/query/tests/*.*
125+
126+
# - name: Test types
127+
# run: |
128+
# yarn tsc --version
129+
# yarn type-tests

packages/toolkit/src/configureStore.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const IS_PRODUCTION = process.env.NODE_ENV === 'production'
3434
* @public
3535
*/
3636
export type ConfigureEnhancersCallback<E extends Enhancers = Enhancers> = (
37-
defaultEnhancers: readonly StoreEnhancer[]
37+
defaultEnhancers: readonly StoreEnhancer[]
3838
) => [...E]
3939

4040
/**
@@ -107,7 +107,7 @@ type Enhancers = ReadonlyArray<StoreEnhancer>
107107
export interface ToolkitStore<
108108
S = any,
109109
A extends Action = AnyAction,
110-
M extends Middlewares<S> = Middlewares<S>,
110+
M extends Middlewares<S> = Middlewares<S>
111111
> extends Store<S, A> {
112112
/**
113113
* The `dispatch` method of your store, enhanced by all its middlewares.
@@ -185,6 +185,7 @@ export function configureStore<
185185
)
186186
}
187187

188+
console.log('Final middleware: ', finalMiddleware)
188189
const middlewareEnhancer: StoreEnhancer = applyMiddleware(...finalMiddleware)
189190

190191
let finalCompose = compose

0 commit comments

Comments
 (0)