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

Allow transition delay #92

Open
theKashey opened this issue Jun 10, 2021 · 0 comments
Open

Allow transition delay #92

theKashey opened this issue Jun 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@theKashey
Copy link
Collaborator

theKashey commented Jun 10, 2021

RRR has a few goals to have a flat routing, the ability to preload code or data is one of them. But we cannot use this ability "properly" out of the box.

It might provide a better user experience(in terms of perceived performance and layout trashing) if RRR can delay the transition until:

  • code for the new location is loaded. Custom code is required to check/preload route target.
  • data for the new location loaded/present. Resource information might need to be extended to indicate the importance of it and describe should it be "transition blocking" or not.

Minimal implementation:

  • patch history to override .push
  • match new URL to the set of given
  • manually handle components, resources and any/or other fields
  • call original .push when required promises are resolved.

Ideally that history patch should be built-in functionality and resource management can be implemented only "inside" RRR.

@jackbrown jackbrown added the enhancement New feature or request label Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants