Skip to content

Commit afd52b2

Browse files
authored
Remove rogue fetchLineupMetadata call (#11928)
1 parent 95ec68e commit afd52b2

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

packages/mobile/src/screens/track-screen/TrackRemixesScreen.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { useEffect } from 'react'
2-
31
import {
42
useRemixContest,
53
useRemixes,
@@ -10,12 +8,11 @@ import { remixMessages as messages } from '@audius/common/messages'
108
import { FeatureFlags } from '@audius/common/services'
119
import {
1210
remixesPageLineupActions as tracksActions,
13-
remixesPageActions,
1411
remixesPageSelectors
1512
} from '@audius/common/store'
1613
import { pluralize } from '@audius/common/utils'
1714
import { Text as RNText, View } from 'react-native'
18-
import { useDispatch, useSelector } from 'react-redux'
15+
import { useSelector } from 'react-redux'
1916

2017
import { Flex, IconRemix, IconTrophy, Text } from '@audius/harmony-native'
2118
import {
@@ -33,7 +30,6 @@ import { useRoute } from 'app/hooks/useRoute'
3330
import { flexRowCentered, makeStyles } from 'app/styles'
3431

3532
const { getCount } = remixesPageSelectors
36-
const { fetchTrackSucceeded } = remixesPageActions
3733
const legacyMessages = {
3834
remix: 'Remix',
3935
of: 'of',
@@ -59,7 +55,6 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({
5955
}))
6056

6157
export const TrackRemixesScreen = () => {
62-
const dispatch = useDispatch()
6358
const { params } = useRoute<'TrackRemixes'>()
6459
const { data: track } = useTrackByParams(params)
6560
const trackId = track?.track_id
@@ -77,21 +72,6 @@ export const TrackRemixesScreen = () => {
7772

7873
const styles = useStyles()
7974

80-
useEffect(() => {
81-
if (trackId) {
82-
dispatch(fetchTrackSucceeded({ trackId }))
83-
dispatch(
84-
tracksActions.fetchLineupMetadatas(0, 10, false, {
85-
trackId
86-
})
87-
)
88-
89-
return function cleanup() {
90-
dispatch(tracksActions.reset())
91-
}
92-
}
93-
}, [dispatch, trackId])
94-
9575
const remixesText = pluralize(legacyMessages.remix, count, 'es', !count)
9676
const remixesCountText = `${count || ''} ${remixesText} ${legacyMessages.of}`
9777

0 commit comments

Comments
 (0)