[민혁] 5주차#10
Merged
Hidden character warning
The head ref may contain hidden characters: "\ubbfc\ud601/week-05"
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
공유하고싶은 내용
이번에 책을 읽으면서 subscribe과 상태 관리에 대한 내용이 흥미로웠습니다.
이 흐름을 보면서 저희 프로젝트 Yamoyo에서
토큰 만료나온보딩 리다이렉트처리를 위해 구현하였던이벤트 버스(event-bus)가 떠올랐습니다.Yamoyo에서의 이벤트 버스
이벤트 버스도
특정 이벤트가 발생했을 때 이를 구독 중인 대상에게 알려준다는 점에서 상태 관리 라이브러리의 subscribe 구조와 유사하다고 느꼈습니다.또한, 이번 챕터를 읽으며 Zustand 같은 상태 관리 라이브러리도 단순히 전역 상태를 저장하는 도구가 아니라, 외부 store의 변경을 React 컴포넌트에 알려주는 subscribe 구조를 기반으로 동작한다는 점이 기억이 잘 남는 것 같습니다.
파일 체크
name/week-nn규칙을 따름week-nn/name.md또는week-nn/name/index.md)