Skip to content

Commit 7337e70

Browse files
authored
Pass info onwards (#583)
* Pass info onwards * Create swift-geese-exist.md
1 parent ca6b614 commit 7337e70

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/swift-geese-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@prefresh/core": patch
3+
---
4+
5+
Pass error-info onwards

packages/core/src/runtime/catchError.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import {
55
import { isDirty, unsetDirty } from '../utils';
66

77
const oldCatchError = options[CATCH_ERROR_OPTION];
8-
options[CATCH_ERROR_OPTION] = (error, vnode, oldVNode) => {
8+
options[CATCH_ERROR_OPTION] = (error, vnode, oldVNode, info) => {
99
if (isDirty(vnode)) {
1010
unsetDirty(vnode);
1111
}
1212

13-
if (oldCatchError) oldCatchError(error, vnode, oldVNode);
13+
if (oldCatchError) oldCatchError(error, vnode, oldVNode, info);
1414
};

0 commit comments

Comments
 (0)