next.js/packages/next/src/shared/lib/utils/error-once.ts
error-once.ts13 lines254 B
let errorOnce = (_: string) => {}
if (process.env.NODE_ENV !== 'production') {
  const errors = new Set<string>()
  errorOnce = (msg: string) => {
    if (!errors.has(msg)) {
      console.error(msg)
    }
    errors.add(msg)
  }
}

export { errorOnce }
Quest for Codev2.0.0
/
SIGN IN