Skip to content

Commit

Permalink
Merge pull request reduxjs#4053 from AaronPowell96/master
Browse files Browse the repository at this point in the history
Former-commit-id: 2e9a2d4
  • Loading branch information
markerikson committed Apr 1, 2021
2 parents c9434d4 + d4b36d3 commit fe1b1f5
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/FAQ.md.REMOVED.git-id
@@ -1 +1 @@
9535af958b9260218c624e0b9dc86d215d9bb3a1
20a9916416c3048146df324e1a65b75259b2dc58
2 changes: 1 addition & 1 deletion docs/api/createStore.md
Expand Up @@ -50,7 +50,7 @@ console.log(store.getState())

- Don't create more than one store in an application! Instead, use [`combineReducers`](combineReducers.md) to create a single root reducer out of many.

- It is up to you to choose the state format. You can use plain objects or something like [Immutable](https://facebook.github.io/immutable-js/). If you're not sure, start with plain objects.
- Redux state is normally plain JS objects and arrays.

- If your state is a plain object, make sure you never mutate it! For example, instead of returning something like `Object.assign(state, newData)` from your reducers, return `Object.assign({}, state, newData)`. This way you don't override the previous `state`. You can also write `return { ...state, ...newData }` if you enable the [object spread operator proposal](../recipes/UsingObjectSpreadOperator.md).

Expand Down
2 changes: 1 addition & 1 deletion docs/faq/ImmutableData.md.REMOVED.git-id
@@ -1 +1 @@
e5d440a791f50cfc28e9671c4f224fa63463e396
317255da7b781494f81574efe6869eaab6d0feee
2 changes: 1 addition & 1 deletion docs/faq/ReactRedux.md.REMOVED.git-id
@@ -1 +1 @@
e9eac838bd0f17ca2feb82650030617ccc7ae47e
06b05e5eae4377fb2227eaa609d5c60721353821
2 changes: 1 addition & 1 deletion docs/introduction/Ecosystem.md.REMOVED.git-id
@@ -1 +1 @@
c7698eaed0f467d4070286da20b766ef88605331
f051e7a84e711c9d78b2d67b6083591c83a17774
1 change: 0 additions & 1 deletion docs/recipes/README.md
Expand Up @@ -18,7 +18,6 @@ These are some use cases and code snippets to get you started with Redux in a re
- [Computing Derived Data](ComputingDerivedData.md)
- [Implementing Undo History](ImplementingUndoHistory.md)
- [Isolating Redux Sub-Apps](IsolatingSubapps.md)
- [Using Immutable.JS with Redux](UsingImmutableJS.md)
- [Code Splitting](CodeSplitting.md)
- [Troubleshooting](Troubleshooting.md)
- [Structuring Reducers](structuring-reducers/StructuringReducers.md)
2 changes: 1 addition & 1 deletion docs/recipes/Troubleshooting.md.REMOVED.git-id
@@ -1 +1 @@
3607f5b4607aef55bfefbd78b3b50ec124a21385
bd57e5a5777b4bf97ae328a266a7694c245b3f92
1 change: 0 additions & 1 deletion docs/recipes/UsingImmutableJS.md.REMOVED.git-id

This file was deleted.

@@ -1 +1 @@
832e2a407ad19f3f89091705f9859f4c4ba712d4
641adcc7db496e7b7519430e51e3bae9f71856b6
2 changes: 1 addition & 1 deletion docs/recipes/structuring-reducers/StructuringReducers.md
Expand Up @@ -21,7 +21,7 @@ It is vital that these Prerequisite Concepts are **thoroughly understood** befor

#### [Prerequisite Concepts](PrerequisiteConcepts.md)

It's also important to note that some of these suggestions may or may not be directly applicable based on architectural decisions in a specific application. For example, an application using Immutable.js Maps to store data would likely have its reducer logic structured at least somewhat differently than an application using plain Javascript objects. This documentation primarily assumes use of plain Javascript objects, but many of the principles would still apply if using other tools.
Standard Redux architecture relies on using plain JS objects and arrays for your state. If you're using an alternate approach for some reason, the details may differ based on your approach, but many of the principles will still apply.

### Reducer Concepts and Techniques

Expand Down
@@ -1 +1 @@
59fced569bf3a88c0124e18076da2fbb6fd1efe2
d78d22877ce644f67b6f2178c2a924b166902ea9
2 changes: 1 addition & 1 deletion website/_redirects.REMOVED.git-id
@@ -1 +1 @@
142583e9808b135ebfd31dab6cc0698e0104f5fe
44dadac6b9caf79ee379dac4009668671fcd90ca
1 change: 0 additions & 1 deletion website/sidebars.js
Expand Up @@ -49,7 +49,6 @@ module.exports = {
'recipes/computing-derived-data',
'recipes/implementing-undo-history',
'recipes/isolating-redux-sub-apps',
'recipes/using-immutablejs-with-redux',
'recipes/code-splitting',
'recipes/troubleshooting',
{
Expand Down

0 comments on commit fe1b1f5

Please sign in to comment.