Skip to content

Commit

Permalink
refactor: change error handling logic
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleShit committed May 2, 2024
1 parent 59c30ac commit a12af3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ export function createEffect(cb: EffectCallback) {

try {
cb();
// eslint-disable-next-line no-useless-catch -- Intentionally rethrowing the error
} catch (e) {
throw e;
} finally {
stack.delete(cb);

throw e;
}
}

Expand Down

0 comments on commit a12af3d

Please # to comment.