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

fix(stores): change store state interface #328

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Conversation

smithoo
Copy link
Collaborator

@smithoo smithoo commented Feb 7, 2025

Type of PR (check all applicable)

  • Fix Bug (fix)

Summary

store state 작성법을 변경합니다

Description

store interface를 정의하기엔 공통의 기능이 없고, 큰 이득이 없어서 상태 관리 방법만 개선합니다.

store class에서 ref를 이용해서 상태를 관리해야 반응성을 유리하게 가져갈 수 있는 지점이 있어서 ref를 썼는데 외부에 노출하면 오염의 여지가 있어서 내부 변수로 하나를 가지고 있고, readonly로 감싼 녀석을 외부에 노출하도록 변경했습니다.

@smithoo smithoo requested a review from yeriiiii February 7, 2025 09:19
@smithoo smithoo self-assigned this Feb 7, 2025
@smithoo smithoo merged commit 2551b37 into release/1.0.9 Feb 10, 2025
6 checks passed
@smithoo smithoo deleted the fix/store-interface branch February 10, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants