Skip to content

Commit

Permalink
remove "obviously" (#3418)
Browse files Browse the repository at this point in the history
inspired by #2950 - I think using "obviously" here can be confusing by assuming a reader knows it's obvious (and why), vs just stating that it's the most common.
  • Loading branch information
panckreous authored and markerikson committed Apr 30, 2019
1 parent 86bca8c commit 8e57358
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ The example is a bit long, because it's showing how all the different slice redu

### Task-Based Updates

Since reducers are just functions, there's an infinite number of ways to split up this logic. While using slice reducers is obviously the most common, it's also possible to organize behavior in a more task-oriented structure. Because this will often involve more nested updates, you may want to use an immutable update utility library like [dot-prop-immutable](https://github.com/debitoor/dot-prop-immutable) or [object-path-immutable](https://github.com/mariocasciaro/object-path-immutable) to simplify the update statements. Here's an example of what that might look like:
Since reducers are just functions, there's an infinite number of ways to split up this logic. While using slice reducers is the most common, it's also possible to organize behavior in a more task-oriented structure. Because this will often involve more nested updates, you may want to use an immutable update utility library like [dot-prop-immutable](https://github.com/debitoor/dot-prop-immutable) or [object-path-immutable](https://github.com/mariocasciaro/object-path-immutable) to simplify the update statements. Here's an example of what that might look like:

```js
import posts from "./postsReducer";
Expand Down

0 comments on commit 8e57358

Please sign in to comment.