saengmotmi / gatsby-starter-lavender

BSD Zero Clause License
2 stars 0 forks source link

react/observer_pattern_with_redux_react_query/ #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

2023-05-23 아름다운 것 (Redux에서 React Query 까지) | saengmotmi's blog

옵저버 패턴(Observer Pattern)은 한 객체의 상태가 바뀌면 그 객체에 의존하는 다른 객체에게 연락이 가고 자동으로 내용이 갱신되는 방식으로 일대다(one-to-many) 의존성을 정의합니다.

https://saengmotmi.netlify.app/react/observer_pattern_with_redux_react_query/

jamessoun93 commented 1 year ago

저도 전역 상태 관리 개념을 redux로 처음 접하게 되었는데 당시 redux의 난해한 흐름을 나름(?) 이해하고 성공적으로 구현했다고 좋아했었던 기억이 있네요. 당시 context api와 redux에 대해 비슷한 생각을 가지고 있기도 했고 비슷한 궁금증들이 있었던 기억이 나서 그때를 떠올리며 재미있게 읽었습니다. 👍

saengmotmi commented 1 year ago

@jamessoun93 ㅋㅋㅋㅋ 저도 그때 기억하면서 썼어요 읽어주셔서 감사해요 승현님

positiveko commented 1 year ago

요즘 구현하고 있는 것에 찰떡 같이 필요했던 내용이네요.. 잘 읽고갑니다 고맙습니다..

saengmotmi commented 1 year ago

@positiveko ㅋㅋㅋ 옵저버 패턴으로 뭔가를 구현하고 계시나요...?