Lex refactor fixes (#368)
* Fix: handle validation failures correctly in feed-view * Fix: convert the off-spec feed view to lex objects * Fix to fetching all follows during init * Bump @atproto/api@0.2.1 * Fix: properly group together like notifications * 1.12
This commit is contained in:
parent
14965d4d97
commit
cc7b2a246e
9 changed files with 28 additions and 11 deletions
|
@ -8,7 +8,7 @@ import {ProfileCardWithFollowBtn} from '../profile/ProfileCard'
|
|||
import {useStores} from 'state/index'
|
||||
import {usePalette} from 'lib/hooks/usePalette'
|
||||
|
||||
export const PostLikedBy = observer(function PostVotedBy({uri}: {uri: string}) {
|
||||
export const PostLikedBy = observer(function ({uri}: {uri: string}) {
|
||||
const pal = usePalette('default')
|
||||
const store = useStores()
|
||||
const view = React.useMemo(
|
||||
|
@ -17,7 +17,7 @@ export const PostLikedBy = observer(function PostVotedBy({uri}: {uri: string}) {
|
|||
)
|
||||
|
||||
useEffect(() => {
|
||||
view.loadMore().catch(err => store.log.error('Failed to fetch votes', err))
|
||||
view.loadMore().catch(err => store.log.error('Failed to fetch likes', err))
|
||||
}, [view, store.log])
|
||||
|
||||
const onRefresh = () => {
|
||||
|
@ -26,7 +26,7 @@ export const PostLikedBy = observer(function PostVotedBy({uri}: {uri: string}) {
|
|||
const onEndReached = () => {
|
||||
view
|
||||
.loadMore()
|
||||
.catch(err => view?.rootStore.log.error('Failed to load more votes', err))
|
||||
.catch(err => view?.rootStore.log.error('Failed to load more likes', err))
|
||||
}
|
||||
|
||||
if (!view.hasLoaded) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue