What, other than redraw, causes a component's view function to be called (endlessly)? #2956
EverettMcKay
started this conversation in
General
Replies: 1 comment
-
The only way Mithril redraws is if one of the following occurs:
There are ways to cause render loops without explicit renders, though. For example, you could do it with
With the above, you'd be stuck in this loop:
I'd need to see code to not just take shots in the dark, though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just discovered that for one of my components, the view function is called endlessly. I discovered this by accident by console logging, but otherwise the component is behaving as it should. I have confirmed that this is not normal by doing the same in other components.
What is causing this? I confirmed that m.redraw() is not being called and v.state is modified only in event handlers. What else causes redraws?
Beta Was this translation helpful? Give feedback.
All reactions