samples use is-loading instead of loading()