You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code means that if newValue is false then we automatically apply oldValue which is true. So there is no way to set forceRender to be false if it is already true.
Could you please let me know if this piece of code is there intentionally or we can just apply value from newValue variable with no issues?
The text was updated successfully, but these errors were encountered:
@krydos Thanks for raising the issue. You are right. For boolean values, it is enough to just take the new values. so just
this.force_render = newValue
should be ok. I will try to add tests before publishing. Even without that, I will just try to release this as early as possible as v1.1.0. I will post updates on this issue.
palerdot
changed the title
There is no way to dinamically change forceRender property
There is no way to dynamically change forceRender property
Jan 25, 2020
hi @palerdot,
Thanks for the lib, it's great.
My current issue is that if
forceRender
property is initially true then I cannot change it to false dynamically.My flow is this:
false
because I don't need to update the whole speedometer anymore.I believe it happens because of THIS LINE.
This code means that if newValue is false then we automatically apply oldValue which is true. So there is no way to set forceRender to be false if it is already true.
Could you please let me know if this piece of code is there intentionally or we can just apply value from
newValue
variable with no issues?The text was updated successfully, but these errors were encountered: