function effect_root(fn) {
	const effect = create_effect(ROOT_EFFECT, fn, true);

	return () => {
		destroy_effect(effect);
	};
}
Internal representation of `$effect.root(...)`
@param {() => void | (() => void)} fn
@returns {() => void}