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 issue is obsolete now. Things have changed after PR #1551.
The engine now has two flags, one to mark the invocation of render() method and another to mark the invocation of executing the template returned by the render method. In both the cases the vmBeingRendered is set. So vmBeingRendered cannot be used to infer which phase the engine is currently in.
SOMA#506
Migrated issue
Notes:
In theory,
vmBeingRendered
should never be null whenisRendering
is true (and vise-versa).Questions
isRendering
would be false andvmBeingRendered
would be true?isRendering
statements withvmBeingRendered !== null
vmBeingRendered !== null
, but is that the case?They are effectively the same. Maybe we can abstract that into a method that we use everywhere:
and see if engines can optimize that.
The text was updated successfully, but these errors were encountered: