@@ -17,7 +17,7 @@ We use them because they are often used by the community, very trendy and easy t
17
17
## How is it used in this boilerplate ❓
18
18
19
19
** For the RTKQuery side** , all is located in ` Services ` .
20
- You will find ` api.js ` file that contain the declaration of the
20
+ You will find ` api.js ` file that contains the declaration of the
21
21
[ fetchBaseQuery] ( https://redux-toolkit.js.org/rtk-query/api/fetchBaseQuery )
22
22
customized with an interceptor
23
23
and the [ createApi] ( https://redux-toolkit.js.org/rtk-query/api/createApi )
@@ -47,7 +47,7 @@ Next to the `Services/api.js` file you have a `modules` folder. Each module
47
47
corresponds to an entity type and will inject endpoints
48
48
into the exported ` api ` const of ` Services/api.js `
49
49
50
- For exemple , next the user services :
50
+ For example , here are the user services :
51
51
``` javascript title="src/Service/modules/users/index.js"
52
52
import { api } from ' ../../api'
53
53
import fetchOne from ' ./fetchOne'
@@ -69,7 +69,7 @@ For exemple , next the user services :
69
69
})
70
70
```
71
71
72
- Next, in your containers it could be use like this :
72
+ Then in your containers it could be use like this :
73
73
74
74
``` javascript
75
75
import React , { useState , useEffect } from ' react'
@@ -104,14 +104,14 @@ const ExampleContainer = () => {
104
104
export default ExampleContainer
105
105
```
106
106
107
- Next, the RTKQuery is linked to the redux store in order to make it work and be debuggable with Flipper.
107
+ The RTKQuery is linked to the redux store in order to make it work and be debuggable with Flipper.
108
108
109
109
::: info
110
110
See the [ API usage] ( https://redux-toolkit.js.org/rtk-query/overview ) for more information
111
111
:::
112
112
113
113
114
- ** For the redux-toolkit side** , we use it to configure all the store and saved the default theme of the application.
114
+ ** On the redux-toolkit side** , we use it to configure all the store and save the default theme of the application.
115
115
116
116
For example, the storing of the favorite theme of the user
117
117
``` javascript
0 commit comments