Skip to content

componentWillUnmount not called #926

@diarmuidoconnor

Description

@diarmuidoconnor

I am using your excellent tool to build an app. My problem is as trivial as the title suggests but I cannot fix it. I have published a bare-bones app on github to illustrate:

https://github.com/diarmuidoconnor/reactdemo

The Bar component has componentWillMount and componentWillUnmount lifecycle methods. The former is called when I navigate to /bar (localStorage has the correct value, 1, for view key) but the latter is not when I move to a different URL (/) - localStorage value for the view key has not changed to 2, as I expected. It is still at 1.

Environment

OSX 10.9
node v4.2.2
npm 2.14.7
Chrome Version 53.0.2785.143

I appreciate this is as much a React query as it is tool query.

Many thanks, Doarmuid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions