Based on the law, the AP application will be invalid. But sometimes USCIS still approve the pending AP application.