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/common-patterns.md
+5-32Lines changed: 5 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,42 +174,15 @@ in the above example of component code, the `upcomingAppointments` and `pastAppo
174
174
175
175
## Organizing the services in your project
176
176
177
-
You can use the file system to organize each service into its own module. This is especially useful in organizing larger-sized projects. Here's an example `store.js`. It uses Webpack's require.context feature save repetitive imports:
177
+
You can use the file system to organize each service into its own module. This is especially useful in organizing larger-sized projects. Here's an example `store.js`. It uses Webpack's require.context feature save repetitive imports.
178
178
179
-
```js
180
-
importVuefrom'vue'
181
-
importVuexfrom'vuex'
182
-
import { FeathersVuex } from'../feathers-client'
183
-
importauthfrom'./store.auth'
184
-
185
-
Vue.use(Vuex)
186
-
Vue.use(FeathersVuex)
187
-
188
-
constrequireModule=require.context(
189
-
// The path where the service modules live
190
-
'./services',
191
-
// Whether to look in subfolders
192
-
false,
193
-
// Only include .js files (prevents duplicate imports`)
Copy file name to clipboardExpand all lines: docs/model-classes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Feathers-Vuex 1.0 introduced some lightweight data modeling. Every service had
10
10
11
11
## Extending the BaseModel Class
12
12
13
-
While [setting up Feathers-Vuex](/api-overview.html#feathers-client-feathers-vuex), we exported the `BaseModel` class so that we could extend it. The below example shows how to import and extend the `BaseModel`. Each service must now have its own unique Model class.
13
+
While [setting up Feathers-Vuex](/getting-started.html#feathers-client-feathers-vuex), we exported the `BaseModel` class so that we could extend it. The below example shows how to import and extend the `BaseModel`. Each service must now have its own unique Model class.
Copy file name to clipboardExpand all lines: docs/nuxt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The `models` and `$FeathersVuex` variables are the same object.
16
16
17
17
## Preventing Memory Leaks
18
18
19
-
The default settings of Feathers-Vuex include having realtime events enabled by default. This will result in increased memory usage over time on the SSR server. It can be turned off when you configure `feathers-vuex`. The example below has been modified from the example of [Setting up the Feathers Client & Feathers-Vuex](./api-overview.md#feathers-client-feathers-vuex). Look specifically at the `enableEvents` option.
19
+
The default settings of Feathers-Vuex include having realtime events enabled by default. This will result in increased memory usage over time on the SSR server. It can be turned off when you configure `feathers-vuex`. The example below has been modified from the example of [Setting up the Feathers Client & Feathers-Vuex](./getting-started.html#feathers-client-feathers-vuex). Look specifically at the `enableEvents` option.
0 commit comments