Skip to content

Deleting properties #52

Description

@caracal7

I thinking about implementing properties deleting.

For example I have reactive graph like this:

b = a => a + 1;
c = b => b + 1;
d = a => a + 1;
e = (b, c) => b + c;
f = e => e * 2;
log = f => console.log(f);
a = 5;

If I delete d property it is not a problem: I need only delete it from states, functions and edges.
But if I want to delete c property I can't decide what I need to do with:

  1. Should I reset state of dependent e property to undefined?
  2. Should I reset state of f property to undefined which is dependent to e?
  3. What I need to do with log function? I think this function should not executed with undefined argument

P.S. Sorry for my English :)

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