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

[Try] DarkMode Redux로 구현 #24

Closed
Hansanghyeon opened this issue Dec 27, 2019 · 1 comment · Fixed by #113
Closed

[Try] DarkMode Redux로 구현 #24

Hansanghyeon opened this issue Dec 27, 2019 · 1 comment · Fixed by #113
Labels
Try 🧐 시도해보기!
Milestone

Comments

@Hansanghyeon
Copy link
Owner

현재는 gatsby-use-dark-mode로 구현했다 하지만 이 플러그인이 해주는 역활을 전역에서 사용할 필요가있어서 Redux로 다크모드의 상태를 가져와서 사용하는게 좋을 것같다고 생각했다.
그리고 디바이스의 현재 테마모드를 가져와서 활성화해줄때도 필요할 것같다.

@Hansanghyeon Hansanghyeon added the enhancement New feature or request label Dec 27, 2019
@Hansanghyeon
Copy link
Owner Author

지금 진행하면서 보고있는데 Redux 를 사용해서 적용하는 것과 동일한 효과를 내고있다고 생각한다.
darkMode.value 를 통해서 darkMode 의 상태를 공통적으로 가지고있는데 굳이 지금 익숙하지 않은 Redux 로 구현해야할까?
이 참에 Redux && React 관련해서 조그만 훈련을 해보고 나서 도입해도 될 것같다는 생각을 했다

@Hansanghyeon Hansanghyeon added this to the 다크모드 milestone Jan 7, 2020
@Hansanghyeon Hansanghyeon added the Try 🧐 시도해보기! label Jan 7, 2020
@Hansanghyeon Hansanghyeon changed the title [Feature] DarkMode Redux로 구현 [Try] DarkMode Redux로 구현 Jan 7, 2020
@Hansanghyeon Hansanghyeon removed the enhancement New feature or request label Jan 7, 2020
@Hansanghyeon Hansanghyeon linked a pull request Mar 29, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Try 🧐 시도해보기!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant