Skip to content

Commit 68e0b95

Browse files
committed
Use context param
1 parent 30d5ff9 commit 68e0b95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/vue-ssr/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ In your server code, you need to set the `VueSSR.createApp` method with a functi
5757
import { VueSSR } from 'meteor/akryum:vue-ssr'
5858
import CreateApp from './app'
5959

60-
VueSSR.createApp = function ({ url }) {
60+
VueSSR.createApp = function (context) {
6161
const { app, router } = CreateApp()
6262
// Set the url in the router
63-
router.push(url)
63+
router.push(context.url)
6464
return app
6565
}
6666
```
6767

6868
Returning a promise works too:
6969

7070
```javascript
71-
VueSSR.createApp = function ({ url }) {
71+
VueSSR.createApp = function (context) {
7272
return new Promise((resolve, reject) => {
7373
const { app, router } = CreateApp()
7474
// Set the URL in the router
75-
router.push(url)
75+
router.push(context.url)
7676

7777
router.onReady(() => {
7878
const matchedComponents = router.getMatchedComponents()

0 commit comments

Comments
 (0)