From 8926608be74649c43e9bb6eda12beeee55c5d368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Che=C5=82kowski?= Date: Wed, 14 Feb 2024 08:58:55 +0100 Subject: [PATCH] feat: add more info fields --- docs/renderer.md | 3 +++ src/components/renderer/Kopytko.brs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/renderer.md b/docs/renderer.md index 1785b76..f8e2f65 100644 --- a/docs/renderer.md +++ b/docs/renderer.md @@ -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 ``` diff --git a/src/components/renderer/Kopytko.brs b/src/components/renderer/Kopytko.brs index b0621f5..78587f9 100644 --- a/src/components/renderer/Kopytko.brs +++ b/src/components/renderer/Kopytko.brs @@ -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