Northern Ireland and Scottland didn't.
This is complicated by the fact that the whole process of re-joining would likely take longer than a single term to complete, and the EU is unlikely to start that process until they believe that support for it in the UK is strong enough that the whole thing won't just be abandoned part way through due to a change of policy or party in government.