0

How can I force dom-elements depending on a binding (like the value-attribute of an input-element) to rerender even if the value of the binding has not changed.

Binding itself does not expose such a method and I was not able to use one of the other classes like Map in my code...

jens
  • 453
  • 2
  • 12

1 Answers1

1

Interesting! Some one just asked a reverse question to avoid re-rendering a DOM element at Toomany DOM updates .

So, the answer to your question is reverse committing the PR mentioned in the other question.

Yang Bo
  • 3,586
  • 3
  • 22
  • 35
  • Thank you very much for your soon answer, but I do not get it: My problem is, that the value of my binding does not change, but I want other bindings (especially the dom-binding) depending on this one to "believe" it did. Do you suggest I should introduce a dummy-binding, that I change when I want the rerendering to occur? Using a bind-call as in the PR would also rerender the whole element (and it's children), but all I want is to rerender the value-attribute... – jens Dec 30 '17 at 18:32
  • Dummy-binding is an obvious workaround. However if you want to perform some side-effects that are not triggered by data changing, why not simply call the side-effectful function directly? – Yang Bo Dec 30 '17 at 19:03
  • Because the only thing I want to do is to rerender the value-attribute in the dom which is bound to my binding... – jens Dec 30 '17 at 19:34