Try to capture more info to debug

This commit is contained in:
Zhiyuan Zheng 2022-02-06 18:58:27 +01:00
parent b68dca7363
commit 9c9c7b83af
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
}, 500)
} catch (err) {
if (Math.random() < 0.1) {
Sentry.Native.setExtras({
Sentry.Native.setContext('Scroll to Index', {
type: 'original',
index: pointer,
itemsLength: flattenData.length,
@ -84,7 +84,7 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
)
} catch (err) {
if (Math.random() < 0.1) {
Sentry.Native.setExtras({
Sentry.Native.setContext('Scroll to Index', {
type: 'onScrollToIndexFailed',
index: error.index,
itemsLength