Effects are cleaned up when detaching an element, but are not re-run when re-attached. Repro: https://playcode.io/2268615