We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063eab8 commit 47372dfCopy full SHA for 47372df
packages/svelte/src/internal/client/error-handling.js
@@ -9,19 +9,11 @@ import { define_property } from '../shared/utils.js';
9
/** @param {WeakSet<Error>} value */
10
const adjusted_errors = new WeakSet();
11
12
-/** @type {null | unknown} */
13
-let current_error = null;
14
-
15
/**
16
* @param {unknown} error
17
* @param {Effect} effect
18
*/
19
export function handle_error(error, effect) {
20
- if (error === current_error) {
21
- // TODO is this necessary?
22
- return;
23
- }
24
25
if (DEV && error instanceof Error) {
26
adjust_error(error, effect);
27
}
0 commit comments