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
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
Why composed views are always auto-rendered, disregarding what autoRender flag is?
if disabledAutoRender and typeof @item.render is 'function'
@item.render()
It's inconvenient in case you want a view to be rendered only after certain event. The only option I've found is to override render method and check there if it's ready to be rendered. This workaround is close to a hack. It would be better to support a proper option autoRender.
Thanks.
The text was updated successfully, but these errors were encountered:
@Grygir by default Chaplin.View is set to autoRender: false. Some implementations override this functionality, allowing views to auto-render by default. Chaplin.CollectionView will render automatically when the backing model is hydrated, though this behavior could also be overridden by extending that class.
If you're finding views created with Chaplin.Composition are somehow rendered automatically, but do not automatically render when compositions are not used, try the composer's long form syntax when creating your composition:
Why composed views are always auto-rendered, disregarding what
autoRender
flag is?It's inconvenient in case you want a view to be rendered only after certain event. The only option I've found is to override render method and check there if it's ready to be rendered. This workaround is close to a hack. It would be better to support a proper option
autoRender
.Thanks.
The text was updated successfully, but these errors were encountered: