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 Mar 20, 2021. It is now read-only.
A glitch appears every time a view uses the loading helper.
— The view is rendered a first time.
— Then, the model is fetched and the view's loading attribute changes, so the the view is rendered a second time (showing/hiding things depending on the loading helper).
— Then, the fetch succeed or failed, so the view is rendered a third time.
The first render seems wrong to me. If a view has to fetch something, it should be hidden until the fetch has begin, right?
The text was updated successfully, but these errors were encountered:
yamsellem
changed the title
Prevent view.render when model.fetch is true
Prevent initial view.render when model.fetch is true
Oct 1, 2014
What is causing the first render here? A jsfiddle/jsbin would help debug this a bit. Generally we try to defer rendering of views as long as possible, so I suspect that the first operation is related to an insert or similar.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A glitch appears every time a view uses the
loading
helper.— The view is rendered a first time.
— Then, the model is fetched and the view's loading attribute changes, so the the view is rendered a second time (showing/hiding things depending on the
loading
helper).— Then, the fetch succeed or failed, so the view is rendered a third time.
The first render seems wrong to me. If a view has to fetch something, it should be hidden until the fetch has begin, right?
The text was updated successfully, but these errors were encountered: