Skip to content

Transitions between sibling states retain scopes (memory leak) #1766

Closed
@smhc

Description

@smhc

When transitioning between sibling states when the initial page load is a sibling state, the scopes are not correctly destroyed.

An example:
http://plnkr.co/edit/nPXyZtS883o0Y9eVoksl

When the initial page load is directly to #/home/a then going to #/home/b results in both "SibAObject" and "SibBObject" being on the heap. (perform a heap snapshot after navigation and search for "Sib").

However, when the initial page load is to #/home, navigations between A and B sibling states do clear the scope and the SibAObject and SibBObject only exist on the heap under the correct state.

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