------- < Error > -------
Expectation Violation: Duplicate atom key "~".This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of hot module replacement.
Next.js에서 recoil을 사용할 때 발생하는 에러이다.
기능적으로는 문제는 없지만 console에 에러가 찍혀 이 문제를 해결하려고 한다.
export const yearFilterAtom = atom({
key: `yearFilter${v1}`,
default: { idx: 0, filter: `${getFullYear}년` },
});