New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
afterPageLoad is undocumented #122
Comments
So this seems to fire, not when the page is loaded, but when you click the same link after the page has been loaded. Possible starting code for documentation:
Input welcome @jakobrosenberg . |
I think this would be the correct approach for an example. import { afterPageLoad } from "@sveltech/routify"
$afterPageLoad ((page) => {
console.log(page.title);
}) |
I am trying to make docs for this in https://github.com/sveltech/routify-site-2020/tree/docs/afterpageload - but somehow the tree is reversing in order when I add a new item (url should be first and it last): Can you check out what is going on? |
@Wolfr there was an issue with sorting in previous versions, but it should be fixed in the most recent. |
if I switch up to @sveltech/routify": "^1.8.0-beta.7" I have the same problem unfortunately :/ |
I'll have a look tonight. |
I think you fixed that bug :) I'll continue work on this branch later. |
Afterpageload is now documented. |
The afterPageLoad hook was added in Routify 1.6, but it seems undocumented on the website.
The text was updated successfully, but these errors were encountered: