Skip to content

hot reloader doesn't deal well with lifecycle methods #49

Closed
@catmando

Description

@catmando

each time lifecycle methods are executed the add more blocks to the lifecycle stack.

When the hot reloader reloads a file, all the lifecycle methods are added again.

There is no easy solution as hot reloader only reloads the single file that changed. So if we remove all lifecycle methods then only the ones for the file being reloaded will get added back in.

The solution may be here: https://github.com/stacktracejs/stacktrace.js

Using this we could track which file defined a life cycle method, and then remove just those methods when the file was reloaded.

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