/* IMPORT */ import untrack from '~/methods/untrack'; import type {ObservableReadonly} from '~/types'; /* MAIN */ // This function ensures an Observable contains a fresh value, mainly to try to push it into a frozen state, if possible const warmup = ( value: ObservableReadonly ): ObservableReadonly => { untrack ( value ); return value; }; /* EXPORT */ export default warmup;