Fix TODO
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import {useEffect, useMemo} from 'react'
|
import {useMemo} from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {Image} from 'expo-image'
|
import {Image} from 'expo-image'
|
||||||
import {LinearGradient} from 'expo-linear-gradient'
|
import {LinearGradient} from 'expo-linear-gradient'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
|
import {useCallOnce} from '#/lib/once'
|
||||||
import {isBskyCustomFeedUrl} from '#/lib/strings/url-helpers'
|
import {isBskyCustomFeedUrl} from '#/lib/strings/url-helpers'
|
||||||
import {atoms as a, useBreakpoints, utils} from '#/alf'
|
import {atoms as a, useBreakpoints, utils} from '#/alf'
|
||||||
import {Link} from '#/components/Link'
|
import {Link} from '#/components/Link'
|
||||||
@@ -39,14 +40,12 @@ export function LiveEventFeedCardWide({
|
|||||||
return '/'
|
return '/'
|
||||||
}, [feed.url])
|
}, [feed.url])
|
||||||
|
|
||||||
// TODO double check this
|
useCallOnce(() => {
|
||||||
useEffect(() => {
|
|
||||||
ax.metric('liveEvents:feedBanner:seen', {
|
ax.metric('liveEvents:feedBanner:seen', {
|
||||||
feed: feed.url,
|
feed: feed.url,
|
||||||
context: metricContext,
|
context: metricContext,
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
})()
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user