The court-mandated map was set to apply beginning with the primary elections on May 15, 2018. Republican lawmakers in the state asked for a stay from the United States Supreme Court and brought suit in federal court, seeking an injunction against using the court-drawn map in the upcoming congressional elections. Both attempts failed on March 19, 2018, following rulings by the Supreme Court and a Pennsylvania federal district court. [source]
The redistricting of congressional districts prepared by the Virginia legislature, the Virginia General Assembly, in 2012 was used in the 2014 elections. The redistricting was found unconstitutional and replaced with a court-ordered redistricting on January 16, 2016, before the 2016 elections.