Skip to content

Computed created each time dirty flag status is checked #30

@mdonatas

Description

@mdonatas

If you take this example:
viewModel.dirtyFlag().isDirty();

viewModel.dirtyFlag is a function which creates computed that hashes the model. So each and every single time when you do that viewModel.dirtyFlag().isDirty(); a new computed is created. So after 10 times editing a field you already have 11 computeds doing the hashing. This is a gigantic performance kill.

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