const alreadyWarned = { } ; export function warnOnce ( condition , message , key = message ) { if ( ! condition && ! alreadyWarned [ key ] ) { alreadyWarned [ key ] = true ; console . warn ( message ) ; } }