Front: Lint + format

This commit is contained in:
Arthur Jamet
2023-12-28 09:38:32 +01:00
committed by Clément Le Bihan
parent 4e3b378d6a
commit 60a73781bd
3 changed files with 6 additions and 13 deletions
+5 -1
View File
@@ -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;