Front: Lint + format
This commit is contained in:
committed by
Clément Le Bihan
parent
4e3b378d6a
commit
60a73781bd
@@ -236,6 +236,10 @@ const styles = StyleSheet.create({
|
||||
|
||||
// Using `memo` to optimize rendering performance by memorizing the component's output.
|
||||
// This ensures that the component only re-renders when its props change.
|
||||
const MusicList = memo(MusicListComponent);
|
||||
const MusicList = memo(MusicListComponent, (prev, next) => {
|
||||
console.log('AAAAA');
|
||||
console.log(prev.initialMusics, next.initialMusics);
|
||||
return prev.initialMusics.length == next.initialMusics.length;
|
||||
});
|
||||
|
||||
export default MusicList;
|
||||
|
||||
Reference in New Issue
Block a user