Skip to content

Conversation

@jjjjjinseo
Copy link
Member

@jjjjjinseo jjjjjinseo commented Sep 30, 2024

๐Ÿ”จ refact

FeedStore

  • zustand๋กœ ์ƒํƒœ๊ด€๋ฆฌ, feed์ •๋ณด๋ฅผ ๋‹ด๊ฒŒ ํ–ˆ์Šต๋‹ˆ๋‹ค.
npm i zustand

HomeFeed

  • ํ™ˆ ํ™”๋ฉด zustand๋กœ ๊ด€๋ฆฌํ•ด์„œ ๋งˆ์šดํŠธ ๋ ๋•Œ, ๋กœ๋”ฉ ์—†์ด ์ด์ „ ๊ธฐ๋ก์ด ์œ ์ง€๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ํ”„๋ก์‹œ ์‚ฌ์ง„์€ ์ผํšŒ์šฉ์ด๊ธฐ๋•Œ๋ฌธ์— ๋กœ์ปฌ์Šคํ† ๋ฆฌ์ง€์— ๋‹ด๊ธฐ๋ฉด ๋ฌธ์ œ ๋ฐœ์ƒ -> ํ”„๋ก์‹œ api๋Š” ๋งค๋ฒˆ ์‹คํ–‰๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • feeds๊ฐ€ ์—…๋ฐ์ดํŠธ ๋˜๋ฉด (์ตœ์‹  ํ”ผ๋“œ๊ฐ€ ๋ณ€๊ฒฝ / ํŒ”๋กœ์šฐ / ์–ธํŒ”๋กœ์šฐ) ์ผ๋‹จ zustand feed๋ฅผ ๋ Œ๋”๋งํ•˜๊ณ , api๋ฅผ ๋’ค์—์„œ ํ˜ธ์ถœํ•˜์—ฌ ๋น„๊ตํ•˜์—ฌ ์„œ๋กœ ๋‹ค๋ฅด๋ฉด ๋‹ค์‹œ ๋ Œ๋”๋ง ๋˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.

refact/#111-home-optimization -> dev
issue #111

@jjjjjinseo jjjjjinseo added the Performance ์„ฑ๋Šฅ ํ–ฅ์ƒ์„ ์œ„ํ•œ ์ž‘์—… label Sep 30, 2024
@jjjjjinseo jjjjjinseo self-assigned this Sep 30, 2024
@jjjjjinseo jjjjjinseo mentioned this pull request Sep 30, 2024
8 tasks
@eunznidang eunznidang merged commit 5cf672a into dev Oct 7, 2024
@jjjjjinseo jjjjjinseo deleted the refact/#111-home-optimization branch October 7, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Performance ์„ฑ๋Šฅ ํ–ฅ์ƒ์„ ์œ„ํ•œ ์ž‘์—…

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants