Skip to content
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

fix: Ensure loadEnd is called even without route navigation #14

Merged
merged 3 commits into from
Apr 6, 2024

Conversation

rschristian
Copy link
Member

The current setup for onLoadEnd is problematic as we also need to be able to trigger it without route change, such as a page load/refresh. preact-www displays this issue and is locked to an older version because of this, as the loading bar will run from initial page load until the user navigates elsewhere.

This adds tests for onLoadStart/onLoadEnd/onRouteChange for page load & navigation, as well as a test to ensure we haven't regressed to calling onLoadEnd on every render, which was the reason for this setup.

@rschristian rschristian merged commit d9eff50 into main Apr 6, 2024
@rschristian rschristian deleted the fix/load-end branch April 6, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants