You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/createSlice.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -353,7 +353,7 @@ reducers: (create) => {
353
353
354
354
### `extraReducers`
355
355
356
-
Conceptually, each slice reducer "owns" its slice of state. There's also a natural correspondance between the update logic defined inside `reducers`, and the action types that are generated based on those.
356
+
Conceptually, each slice reducer "owns" its slice of state. There's also a natural correspondence between the update logic defined inside `reducers`, and the action types that are generated based on those.
357
357
358
358
However, there are many times that a Redux slice may also need to update its own state in response to action types that were defined elsewhere in the application (such as clearing many different kinds of data when a "user logged out" action is dispatched). This can include action types defined by another `createSlice` call, actions generated by a `createAsyncThunk`, RTK Query endpoint matchers, or any other action. In addition, one of the key concepts of Redux is that many slice reducers can independently respond to the same action type.
Copy file name to clipboardExpand all lines: docs/rtk-query/api/created-api/hooks.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -370,7 +370,7 @@ selectFromResult: () => ({})
370
370
- `trigger`: A function that triggers an update to the data based on the provided argument. The trigger function returns a promise with the properties shown above that may be used to handle the behavior of the promise
371
371
- `mutationState`: A query status object containing the current loading state and metadata about the request, or the values returned by the `selectFromResult` option where applicable.
372
372
Additionally, this object will contain
373
-
- a `reset` method to reset the hook back to it's original state and remove the current result from the cache
373
+
- a `reset` method to reset the hook back to its original state and remove the current result from the cache
374
374
- an `originalArgs` property that contains the argument passed to the last call of the `trigger` function.
0 commit comments