Skip to content

Router implementation alternatives #12

@skipkayhil

Description

@skipkayhil

The current implementation of the router (depending on parsing the current DOM into virtual nodes) seems like not very good practice and is definitely not declarative. I have two potential alternatives that I would be willing to implement to resolve this.

  1. Continue to show only loaded content but in a more declarative way.
  2. Change to a more basic 'loaded content or fallback loading spinner' type approach

For 1, I believe I have a solution where state of a new route will be held until that route has been loaded, and then it replaces the active route in state. This would allow the page to stay interactive until the new page has loaded. Clicking a different link before the page has loaded could result in the new page replacing the new route in state, or other Links could be locked until the route of the first link clicked has loaded.

Let me know if you have any suggestions or questions, and I can work to implement one of these solutions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions