Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Update 03-client-api.md
Browse files Browse the repository at this point in the history
No need for parens plus removed an extra paren
  • Loading branch information
burningTyger authored and Conduitry committed Jul 28, 2019
1 parent e8b7f48 commit 29d013d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/03-client-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ sapper.start({
### goto(href, options?)

* `href` — the page to go to
* `options` — can include a `replaceState` property, which determines whether to use `history.pushState` (the default) or `history.replaceState`). Not required
* `options` — can include a `replaceState` property, which determines whether to use `history.pushState` (the default) or `history.replaceState`. Not required

Programmatically navigates to the given `href`. If the destination is a Sapper route, Sapper will handle the navigation, otherwise the page will be reloaded with the new `href`. (In other words, the behaviour is as though the user clicked on a link with this `href`.)
Programmatically navigates to the given `href`. If the destination is a Sapper route, Sapper will handle the navigation, otherwise the page will be reloaded with the new `href`. In other words, the behaviour is as though the user clicked on a link with this `href`.

Returns a `Promise` that resolves when the navigation is complete.

Expand Down

0 comments on commit 29d013d

Please sign in to comment.