From 3509c99d6de5201cdb29dc4c267c60ed13f9801c Mon Sep 17 00:00:00 2001 From: Lenny Burdette Date: Fri, 23 Feb 2018 18:00:32 -0800 Subject: [PATCH] fix(link-to): add id to "inactive loading state" warning Without an ID, this triggers an assertion with the message "When calling warn you must provide an options hash as the third parameter. options should include an id property." --- packages/ember-glimmer/lib/components/link-to.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ember-glimmer/lib/components/link-to.ts b/packages/ember-glimmer/lib/components/link-to.ts index 3faabd2ac5c..f409ea699af 100644 --- a/packages/ember-glimmer/lib/components/link-to.ts +++ b/packages/ember-glimmer/lib/components/link-to.ts @@ -628,7 +628,9 @@ const LinkComponent = EmberComponent.extend({ if (get(this, 'loading')) { // tslint:disable-next-line:max-line-length - warn('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.', false); + warn('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.', false, { + id: 'ember-glimmer.link-to.inactive-loading-state' + }); return false; }