A callback passed to the effect function that makes it possible to register cleanup logic.
type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void