Skip to content

Commit 5c6d100

Browse files
authored
Merge pull request #4481 from reduxjs/docs/modern-redux-migration
2 parents ece840f + 8c7b389 commit 5c6d100

File tree

4 files changed

+1166
-2
lines changed

4 files changed

+1166
-2
lines changed

docs/introduction/why-rtk-is-redux-today.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,5 @@ See these docs pages and blog posts for more details
233233
- [Redux Essentials: Redux App Structure](../tutorials/essentials/part-2-app-structure.md)
234234
- [Redux Fundamentals: Modern Redux with Redux Toolkit](../tutorials/fundamentals/part-8-modern-redux.md)
235235
- [Redux Style Guide: Best Practices and Recommendations](../style-guide/style-guide.md)
236+
- [Presentation: Modern Redux with Redux Toolkit](https://blog.isquaredsoftware.com/2022/06/presentations-modern-redux-rtk/)
236237
- [Mark Erikson: Redux Toolkit 1.0 Announcement and development history](https://blog.isquaredsoftware.com/2019/10/redux-toolkit-1.0/)

docs/tutorials/fundamentals/part-4-store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,15 @@ Any middleware can return any value, and the return value from the first middlew
491491

492492
```js
493493
const alwaysReturnHelloMiddleware = storeAPI => next => action => {
494-
const originalResult = next(action);
494+
const originalResult = next(action)
495495
// Ignore the original result, return something else
496496
return 'Hello!'
497497
}
498498

499499
const middlewareEnhancer = applyMiddleware(alwaysReturnHelloMiddleware)
500500
const store = createStore(rootReducer, middlewareEnhancer)
501501

502-
const dispatchResult = store.dispatch({type: 'some/action'})
502+
const dispatchResult = store.dispatch({ type: 'some/action' })
503503
console.log(dispatchResult)
504504
// log: 'Hello!'
505505
```

0 commit comments

Comments
 (0)