In this study, it was discovered that by adding ranolazine to PLN-KO hiPSC-CMs with an HF phenotype, the glucose metabolism level was restored, Ca2+ transport was restored, mitochondrial damage and the number of mitochondria were restored, the level of ROS was decreased, and the phenotype of HF was recovered. This evidence concerns the gene PLN and hydrops fetalis.