Skip to content
This repository was archived by the owner on Sep 20, 2020. It is now read-only.
This repository was archived by the owner on Sep 20, 2020. It is now read-only.

State change with "notify: false" refreshes sticky on next transition #369

Description

@otterslide

I have this line in my code:
$state.go('Home.edit', {id: response.id}, {notify: false});
Which I use just to change the URL in case the user goes to the wrong ID.

So if I go to /edit/222 and id 222 doesn't exist, it changes to /edit/ for example, without reloading the entire page.
But having this seems to break the sticky:true.
I have it working fine if this never happens. When the state change with Notify:false happens, it will refresh the state when I switch to a new state.. so instead of staying "sticky" and unchanged, it actually refreshes.

Any ideas how I can change the URL inside a sticky state, without causing a refresh on the next state change? If I don't use notify:false then the state will refresh, which I don't want. I just want to keep URL correct so if they press Refresh it will work correctly.

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