Skip to content

Commit

Permalink
feat: add more info fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bchelkowski committed Feb 14, 2024
1 parent 05e2c6d commit 8926608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/renderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ these methods are called lifecycle methods:
' The info object containing
' componentMethod - component method where the error has been thrown
' componentName - node name that extends KopytkoGroup or KopytkoLayoutGroup
' componentProps - current component properties
' componentState - current component state
' componentVirtualDOM - current component virtual DOM
?info
end sub
```
Expand Down
3 changes: 3 additions & 0 deletions src/components/renderer/Kopytko.brs
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,8 @@ sub _throw(error as Object, failingComponentMethod as String)
componentDidCatch(error, {
componentMethod: failingComponentMethod,
componentName: m.top.subtype(),
componentProps: m.top.getFields(),
componentState: m.state,
componentVirtualDOM: m._virtualDOM,
})
end sub

0 comments on commit 8926608

Please sign in to comment.