mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
deep equal ListItem props for now
this needs a bigger refactor
This commit is contained in:
@@ -11,6 +11,7 @@ import { AlbumContextPressable, ArtistContextPressable, SongContextPressable } f
|
||||
import CoverArt from './CoverArt'
|
||||
import PressableOpacity from './PressableOpacity'
|
||||
import { PressableStar } from './Star'
|
||||
import equal from 'fast-deep-equal/es6/react'
|
||||
|
||||
const TitleTextSong = React.memo<{
|
||||
contextId?: string
|
||||
@@ -246,4 +247,4 @@ const bigStyles = StyleSheet.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default React.memo(ListItem)
|
||||
export default React.memo(ListItem, equal)
|
||||
|
||||
Reference in New Issue
Block a user