Only call beforeRender() if it hasn't been called yet