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

Overcomitting issue #41

Open
cmontella opened this issue Aug 31, 2017 · 1 comment
Open

Overcomitting issue #41

cmontella opened this issue Aug 31, 2017 · 1 comment

Comments

@cmontella
Copy link
Contributor

commit
  [#system/timer resolution: 1000]
end

search
  [#system/timer second]
bind
  [#foo time: second]
end

search
  foo = [#foo time]
bind
  [#html/div text: "{{foo}} {{foo.time}}"]
end

Has output

foo|59| 59
foo|1| 1
foo|2| 2
foo|4| 4
foo|7| 7
foo|8| 8
foo|9| 9
foo|10| 10
foo|11| 11
etc.

expected output is continually replacing the bound div with the current time:

foo|11| 11
@ibdknox
Copy link
Contributor

ibdknox commented Aug 31, 2017

This is because the code has both time and foo.time, which means there are two pipes that react to the removal of time, but when #foo is removed first, only one remove happens instead of two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants