Skip to content

Commit

Permalink
Update packages/core/useTitle/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 16, 2022
1 parent cda7658 commit d9b6131
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/core/useTitle/index.md
Expand Up @@ -51,13 +51,3 @@ const title = useTitle('New Title', { titleTemplate: '%s | My Awesome Website' }
`observe` is incompatible with `titleTemplate`.
:::

```js
/* ✅ Will work */
const title = useTitle('New Title', { observe: true })

/* ✅ Will work */
const title = useTitle('New Title', { titleTemplate: '%s - %s' })

/* ❌ Will throw an error */
const title = useTitle('New Title', { observe: true, titleTemplate: '%s - %s' })
```

0 comments on commit d9b6131

Please sign in to comment.