0

What is this error and how to solve this ?

Expectation Violation: Duplicate atom key "modalState". This is a FATAL ERROR in
  production. But it is safe to ignore this warning if it occurred because of
  hot module replacement.
at expectationViolation (/home/prajan/Desktop/Nextjs/fuck/node_modules/recoil/cjs/index.js:558:19)

modalAtom.js

import { atom } from "recoil";

export const modalState = atom ({
    key:"modalState",
    default:false,
 
})
  • Does this answer your question? [recoil: Duplicate atom key - in nextjs](https://stackoverflow.com/questions/65506656/recoil-duplicate-atom-key-in-nextjs) – Ryan Apr 26 '23 at 13:13

0 Answers0