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
I don't know where or why onUpdate is being triggered, but you can see in this working example that the onUpdate in the CurriculumMenu is being called continuously. In no onUpdate callbacks do I call requestUpdate or requestUpdateOnNextTick.
The text was updated successfully, but these errors were encountered:
artichox
changed the title
onUpdate fires continuously despite not calling requestUpdate or requestUpdateOnNextTick
[Bug?] onUpdate fires continuously despite not calling requestUpdate or requestUpdateOnNextTick
Sep 11, 2015
I think that's a bug. What happens if instead of passing this (@) into the requestUpdateOnNextTick call you make a component, then pass the component ID into requestUpdateOnNextTick (hen you add the component with addComponent, it returns the component ID).
Hi. I wanted to report a bug I've found related to update/onupdate and then I saw your problem.
in core/Transform.js multiply (out, a, b) function (In Famous)
there are lines like this:
changed = changed ? changed : out[0] === res;
which is wrong as changed will be true if there were no changes.
out[0] !== res;
would be correct, and that stops the updates from being called again each frame.
I don't know where or why onUpdate is being triggered, but you can see in this working example that the onUpdate in the CurriculumMenu is being called continuously. In no onUpdate callbacks do I call requestUpdate or requestUpdateOnNextTick.
https://github.com/artichox/example-of-famous-onupdate-bug
The text was updated successfully, but these errors were encountered: