Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observable set works from other computed #28

Closed
luwes opened this issue Aug 3, 2019 · 0 comments · Fixed by krausest/js-framework-benchmark#642
Closed

Observable set works from other computed #28

luwes opened this issue Aug 3, 2019 · 0 comments · Fixed by krausest/js-framework-benchmark#642
Assignees
Labels
bug Something isn't working

Comments

@luwes
Copy link
Owner

luwes commented Aug 3, 2019

This is currently not working

  var banana = o();
  var count = 0;
  S(() => {
    count++;
    return banana() + ' shake';
  });
  t.equal(count, 1);

  var carrot = o();
  S(() => {
    console.log('banana false');
    banana(false);

    carrot() + ' soup';

    console.log('banana true');
    banana(true);
  });

  carrot('carrot');
  t.equal(count, 5);
@luwes luwes added the bug Something isn't working label Aug 3, 2019
@luwes luwes self-assigned this Aug 3, 2019
@luwes luwes closed this as completed in 7c2b139 Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant