Skip to content

Commit

Permalink
update readme (default handler precautions)
Browse files Browse the repository at this point in the history
  • Loading branch information
jin60641 committed Jan 15, 2024
1 parent 923750c commit 33f9db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ counterReducer(0, increment()); // => 1
```
A default handler can be attached, which is invoked for all actions not associated with a handler.
Please be aware that the defaultHandler may be triggered by the initialization process of the Redux store or by actions dispatched from some other libraries used as middleware, causing the state to be updated.
```ts
const rootReducer = combineReducers({ /* ... */ });
type RootState = StateType<typeof rootReducer>;
Expand Down

0 comments on commit 33f9db8

Please sign in to comment.