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/api #162

Merged
merged 28 commits into from
Aug 19, 2022
Merged

Refactor/api #162

merged 28 commits into from
Aug 19, 2022

Conversation

sungwoo-shin
Copy link
Member

@sungwoo-shin sungwoo-shin commented Aug 19, 2022

๐Ÿ“ PR Summary

  • ๋ฐ˜๋“œ์‹œ Refactor/normย #160 ๋ฆฌ๋ทฐ ์ดํ›„ ๋ณธ PR์„ ๋ฆฌ๋ทฐํ•ด์ฃผ์„ธ์š”!!
  • ๋ฐฑ API response ๋ณ€๊ฒฝ์— ๋Œ€์‘
  • ๋ฉ˜ํ† ๋ง ์‹œ ์ง€์ ๋ฐ›์€ ๊ฐœ์„ ์‚ฌํ•ญ ๋ฆฌํŒฉํ† ๋ง
  • React Query ๋„์ž…๊ณผ migration ์˜ˆ์ •์œผ๋กœ ์ธํ•ด ๋‹ค์Œ์˜ API ๊ด€๋ จ ๋ฆฌํŒฉํ† ๋ง์€ ์ง„ํ–‰ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. (migration ์ดํ›„ ๋‹ค์Œ ์‚ฌํ•ญ์ค‘ ํ•„์š”์—ฌ๋ถ€ ๊ฒ€ํ†  ํ›„ ๋ฆฌํŒฉํ† ๋ง ์ง„ํ–‰ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.)
    • hasAlreadyBeenFetched ํ•จ์ˆ˜ ํ†ตํ•ฉ
    • slice ํŒŒ์ผ์—์„œ thunk ๋ถ„๋ฆฌ
    • endpoint constant๋กœ ๋ณ„๋„ ํŒŒ์ผ๋กœ ๊ด€๋ฆฌ

๐ŸŒฒ Working Branch

refactor/API

๐ŸŒฒ TODOs

Related Issues

#161

- ๋ธ”๋ก ์Šค์ฝ”ํ”„์—์„œ๋Š” ํ•จ์ˆ˜ ์„ ์–ธ์‹์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค.
- ํ•จ์ˆ˜ ๋‚ด์—์„œ ๋ฐ˜ํ™˜์€ ํ•œ ๋ฒˆ๋งŒ ํ•œ๋‹ค.
- anti pattern ํ•ด์†Œ
- moment.js -> day.js
- ๋ฐฐ๊ฒฝ ์•„๋ž˜๋กœ ๊น”๋ฆฌ๋Š” animation ์ ์šฉ ์‹œ CSS ์ž‘์—…์— ์‹œ๊ฐ„์„ ๊ณผ๋„ํ•˜๊ฒŒ ์‚ฌ์šฉํ• ๊ฒƒ ๊ฐ™์•„
- color์—๋งŒ transition์„ ์ ์šฉํ•ฉ๋‹ˆ๋‹ค.
- ๋ถ€๋ชจ์™€ ์ž๋…€๊ฐ€ ๋™์ผํ•œ transition์„ ๊ฒฝํ—˜ํ•ฉ๋‹ˆ๋‹ค.
- thunk์—์„œ error ๋ฐœ์ƒ ์‹œ rejected case ์ด๋™ ์‹œ action.payload undefined ์ƒํƒœ์ž„
- rejectWithValue ์‚ฌ์šฉํ•ด์„œ error๋ฅผ ์ „์—ญ์ƒํƒœ๋กœ ์ถ”๊ฐ€๋กœ ๊ด€๋ฆฌํ•ด์•ผํ•จ
- React Query migration ์‹œ ์—๋Ÿฌ์ฒ˜๋ฆฌ ๋กœ์ง ์ถ”๊ฐ€ํ•˜๊ณ , ์•ŒํŒŒ๋ฒ„์ „ ๋ฆด๋ฆฌ์ฆˆ ์‹œ์—๋Š” ์—๋Ÿฌ์ฒ˜๋ฆฌ ์—†์ด ๊ฐ€๋Š”๊ฒŒ ๋‚˜์„๊ฒƒ ๊ฐ™์Œ
@9yujin 9yujin merged commit 0f5a923 into dev Aug 19, 2022
@9yujin 9yujin deleted the refactor/API branch August 19, 2022 16:10
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