Skip to content

Commit 88e0f34

Browse files
cellogtimdorr
authored andcommitted
fix replaceReducer with a store enhancer (reduxjs#3524)
* fix replaceReducer with a store enhancer * remove erroneous restriction on StateExt * remove the other extension - our store enhancer might add array functionality, for instance * add reasonable defaults for Ext and StateExt * fix state, add a test for non-object-based state * add verification that store extension is also passed to replaceReducer * better fix: set state default based on what base type it is * fix array test * fix typing of StateExt * add mhelmerson example * fix replaceReducer, so that it infers types, fix example test * fix the weird type hacks in the test * add final working example * update based on PR type changes * fix type * update tests to reflect complete examples * merge the changes from index.d.ts into types/store.ts * extend store type * much better approach: only extend the state when we have an extension * fix typing issues not caught before * add link to the place I learned about this Former-commit-id: 5e5ac68 Former-commit-id: 6de326a
1 parent 162ab75 commit 88e0f34

7 files changed

+7
-7
lines changed

index.d.ts.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
db64dd5e3c707ba098a31ff261cabcb2248440fb
1+
aa8ec2ad318f2542aaf407c9112143f8669dba4e

src/applyMiddleware.ts.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fe8edefa1154dce4d340c013db0ff3afc55be95e
1+
7bddf3fc0594f56bdef8979d7114a12f926e7d61

src/createStore.ts.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f6ab9e2cf2fef29f7af9007b64c2b7b8aca8856a
1+
0a0d35b8351fe8bd318d6c754b31d3ed210698d6

src/index.ts.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
350d1f61ebfbb90491cf8985f7bb1e9210ab15d0
1+
40df5f346de6cd075ce8946e0fa1aa778e9cbc09

src/types/store.ts.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
688b46b6c97da9e3dac0d1f239682372d9b764b4
1+
aaebb0ad21e3f200568600eb568abbec514e7111
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5e8e180bd940f2e9b763e1459383468cf58e40ee
1+
e39ca83628a4c7b439ab0a5f0e2b883dffea4807
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
123464ce556358be71cad6cb468910c36c2f9a39
1+
b387c0b15c9aa3a4656445ccc18274fdbd2abfd8

0 commit comments

Comments
 (0)