Implement logging system
This commit is contained in:
parent
99cec71ed7
commit
f6a0e634d7
39 changed files with 442 additions and 125 deletions
|
@ -36,10 +36,24 @@ export const Feed = observer(function Feed({
|
|||
return <FeedItem item={item} />
|
||||
}
|
||||
const onRefresh = () => {
|
||||
view.refresh().catch(err => console.error('Failed to refresh', err))
|
||||
view
|
||||
.refresh()
|
||||
.catch(err =>
|
||||
view.rootStore.log.error(
|
||||
'Failed to refresh notifications feed',
|
||||
err.toString(),
|
||||
),
|
||||
)
|
||||
}
|
||||
const onEndReached = () => {
|
||||
view.loadMore().catch(err => console.error('Failed to load more', err))
|
||||
view
|
||||
.loadMore()
|
||||
.catch(err =>
|
||||
view.rootStore.log.error(
|
||||
'Failed to load more notifications',
|
||||
err.toString(),
|
||||
),
|
||||
)
|
||||
}
|
||||
let data
|
||||
if (view.hasLoaded) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue