1- import { useEffect } from 'react'
2-
31import {
42 useRemixContest ,
53 useRemixes ,
@@ -10,12 +8,11 @@ import { remixMessages as messages } from '@audius/common/messages'
108import { FeatureFlags } from '@audius/common/services'
119import {
1210 remixesPageLineupActions as tracksActions ,
13- remixesPageActions ,
1411 remixesPageSelectors
1512} from '@audius/common/store'
1613import { pluralize } from '@audius/common/utils'
1714import { Text as RNText , View } from 'react-native'
18- import { useDispatch , useSelector } from 'react-redux'
15+ import { useSelector } from 'react-redux'
1916
2017import { Flex , IconRemix , IconTrophy , Text } from '@audius/harmony-native'
2118import {
@@ -33,7 +30,6 @@ import { useRoute } from 'app/hooks/useRoute'
3330import { flexRowCentered , makeStyles } from 'app/styles'
3431
3532const { getCount } = remixesPageSelectors
36- const { fetchTrackSucceeded } = remixesPageActions
3733const legacyMessages = {
3834 remix : 'Remix' ,
3935 of : 'of' ,
@@ -59,7 +55,6 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({
5955} ) )
6056
6157export 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