From 1b93a7330fcdb0510b056a8a6c09f50758f8a38f Mon Sep 17 00:00:00 2001 From: Conduitry Date: Sat, 15 Feb 2020 11:39:18 -0500 Subject: [PATCH] less scary warning message --- .../compile/render_dom/wrappers/InlineComponent/index.ts | 2 +- test/validator/samples/component-dynamic/warnings.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts index 17a0d31be6..f1c57ed094 100644 --- a/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts +++ b/src/compiler/compile/render_dom/wrappers/InlineComponent/index.ts @@ -116,7 +116,7 @@ export default class InlineComponentWrapper extends Wrapper { if (variable.reassigned || variable.export_name || variable.is_reactive_dependency) { this.renderer.component.warn(this.node, { code: 'reactive-component', - message: `<${name} /> will not be reactive. Use if you want reactivity.`, + message: `<${name}/> will not be reactive if ${name} changes. Use if you want this reactivity.`, }); } } diff --git a/test/validator/samples/component-dynamic/warnings.json b/test/validator/samples/component-dynamic/warnings.json index faeed3e6c6..457ef11a1e 100644 --- a/test/validator/samples/component-dynamic/warnings.json +++ b/test/validator/samples/component-dynamic/warnings.json @@ -1,7 +1,7 @@ [ { "code": "reactive-component", - "message": " will not be reactive. Use if you want reactivity.", + "message": " will not be reactive if Let changes. Use if you want this reactivity.", "pos": 190, "end": { "character": 197, @@ -15,7 +15,7 @@ } }, { - "message": " will not be reactive. Use if you want reactivity.", + "message": " will not be reactive if ExportLet changes. Use if you want this reactivity.", "code": "reactive-component", "pos": 198, "end": { @@ -30,7 +30,7 @@ } }, { - "message": " will not be reactive. Use if you want reactivity.", + "message": " will not be reactive if Reactive changes. Use if you want this reactivity.", "code": "reactive-component", "pos": 212, "end": {