Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Asynchronous pushState is causing some trouble with Backbone routing #781

@bjmiller

Description

@bjmiller

After snooping around the code to find out why things were failing to render in zombie even though they're working just fine in FF/Chrome, I discovered that pushState was made asynchronous.

The routes in an app that I'm working on make the assumption that the URL and history will change immediately when pushState is called, and the code that runs after it in the same turn of the event loop will be able to refer to the current state of those things if necessary.

Can we add a flag to force synchronous state changes to history? It looks like this is where my problems may have started: 038b3c6

I'm not sure if there's an easy way to change or rewrite my application code so that this isn't a problem.

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