Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] filterListAtom에서 atom 제거 및 전역 객체로 리팩토링 #241

Open
seong-hui opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@seong-hui
Copy link
Member

🪷 기능 설명

  • 현재 filterListAtom은 Jotai의 atom으로 정의되어 있지만 실제로는 FilterList 인스턴스를 전역으로 관리하는 것이 더 적절하다고 생각하여 리팩토링을 진행하고자 합니다.
  • filterListAtom이 전역 객체로 유지될 수 있다면 atom을 제거해도 동작이 동일하기 때문에 불필요한 atom을 제거하고자 합니다.

🛠️ 작업 목록

  • FilterList는 객체 참조가 유지되는 전역 상태로 동작할 수 있어 전역상태관리(atom)을 사용할 필요가 없다고 판단하였습니다.

  • filterListAtom을 단순한 전역 객체로 변환

  • useAtom(filterListAtom)을 사용하는 부분을 수정하여 직접 filterListAtom을 참조하도록 변경

📚 참고 자료

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant