Skip to content

Commit

Permalink
Rewrite Redux error messages
Browse files Browse the repository at this point in the history
- Added miniature port of `kindOf` for better `typeof` descriptions
- Used `kindOf` for all runtime type check errors
- Inlined "slice reducer returned undefined" error message
- Rewrote "actions must be plain objects" error message to show the
  actual variable type and added tests
- Reworded a bunch of error messages
- Added some additional docs links
- Updated tests that check error messages


Former-commit-id: 3807c07
Former-commit-id: ba572ce
  • Loading branch information
markerikson committed Apr 2, 2021
1 parent db4ff6e commit 30224f7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion errors.json.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49e6c98a69ac89787b8d7d2a5bb8a856c76f2350
3130695822a7f34ddc7a713410d2a81b76327ef7
2 changes: 1 addition & 1 deletion src/bindActionCreators.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
620cf9f6a48fe1c55a72f7ff53d4b05615b84750
022d15bb0ea21b6cfc4b271a5e55ae7becd92e30
2 changes: 1 addition & 1 deletion src/combineReducers.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0da94c9b85327e579d0082c6c26137f4d973c0c2
8ab020ebc16b7bbb88896f9a7ab48fc37b3f6408
2 changes: 1 addition & 1 deletion src/createStore.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3a980bba37bacd3f9ac670ba9db2fcda6c5cdb83
d1bc6abaa2ca81980ad24406d28277816cd3cc45
1 change: 1 addition & 0 deletions src/utils/kindOf.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2c600bc702f2295d91a736ef22863ea220e30288
2 changes: 1 addition & 1 deletion test/bindActionCreators.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5efecb6902f7abeab5af8892f778346c4bcaeaf7
2becf689a87bd5601669e4e67b941b08fcf72407
2 changes: 1 addition & 1 deletion test/combineReducers.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
87dc94fb1b1c28380de657c4df0f41d14a1c9f91
59786a1c8429828c8303f9b859622982997363bc
2 changes: 1 addition & 1 deletion test/createStore.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e422c73c434f0bb6184a6f9043b3a205796bcf08
c9e1143bb76552060055fe1ce29b57a8670465b1

0 comments on commit 30224f7

Please sign in to comment.