Skip to content

Commit

Permalink
fix: vite 환경에서의 Duplicate atom key 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielyoon7 committed May 15, 2023
1 parent dc49bd2 commit a2d0865
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/configs/recoil.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { RecoilEnv } from 'recoil';

RecoilEnv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED = false;
1 change: 1 addition & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { theme } from './style/theme';
import { RouterProvider } from 'react-router-dom';
import router from './router';
import { RecoilRoot } from 'recoil';
import './configs/recoil';

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
Expand Down

0 comments on commit a2d0865

Please sign in to comment.