Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Oct 17, 2024
1 parent 63718a1 commit 5f713ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/svelte/src/legacy/warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ var normal = 'font-weight: normal';
*/
export function legacy_recursive_reactive_block() {
if (DEV) {
console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`, bold, normal);
console.warn(

Check failure on line 13 in packages/svelte/src/legacy/warnings.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`,
bold,
normal

Check failure on line 16 in packages/svelte/src/legacy/warnings.js

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
);
} else {
// TODO print a link to the documentation
console.warn("legacy_recursive_reactive_block");
console.warn('legacy_recursive_reactive_block');
}
}
}

0 comments on commit 5f713ac

Please sign in to comment.