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

Adds example to goto documentation #1055

Merged
merged 5 commits into from
Feb 26, 2020
Merged

Adds example to goto documentation #1055

merged 5 commits into from
Feb 26, 2020

Conversation

kevmodrome
Copy link
Contributor

I was a bit confused as to where I would import goto from so I added a small usage example.

@Conduitry
Copy link
Member

Maybe an example with await to indicate that this navigation is not synchronous, and that you can use the promise to deal with that,

Updates example to show how to use async promise functionality.
@kevmodrome
Copy link
Contributor Author

I changed the example a bit and added a sentence to the promise documentation. I'm not sure how elaborate of an example is warranted. Should I do one that does something both on resolve as well as reject or is this fine?

@Conduitry
Copy link
Member

I went to push a couple of tweaks before squashing merging this, but apparently you didn't enable allowing maintainers to push to the branch this PR is from.

@kevmodrome
Copy link
Contributor Author

My bad @Conduitry, enabled it.

@Conduitry Conduitry merged commit 31d6f05 into sveltejs:master Feb 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants