Skip to content

use window.history.pushState(...)  #38

@KillariDev

Description

@KillariDev
          World's smallest router, big fan.  Most people bring in a giant routing library just to do this and it is annoying.

That being said, we may want to use window.history.pushState(...) for this instead. See https://developer.mozilla.org/en-US/docs/Web/API/History_API and https://stackoverflow.com/a/44850073 for details. It is not immediately obviously to me that we want pushState, but we should understand the tradeoffs.

Originally posted by @MicahZoltu in #36 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions