Callbacks: "to, from" versus "from, to"
BennyHinrichs opened this issue · 3 comments
BennyHinrichs commented
In some places in the docs, e.g. onNavigationChanged
you say that the callback params are (to, from)
, and then in other places, e.g. /component/view.svelte:58
, you say it's (from, to)
. Which one is it? When I run onNavigationChanged
, it looks like (from, to)
to me.
davidhorak commented
@BennyHinrichs it is fn(from, to) for onNavigationChanged, onBeforeNavigation - the documentation has been updated.
BennyHinrichs commented
Excellent. I think it's still the old one in src/router.js:124,143
.
davidhorak commented
@BennyHinrichs Good catch, all update in a5c1b61 commit.