import type { Atom } from 'jotai' ; export function createInitialValues ( ) { const initialValues = [ ] ; const get = ( ) => initialValues ; const set = < T > ( anAtom , value ) => { initialValues . push ( [ anAtom , value ] ) ; } ; return { get , set } ; }