Skip to content

Conversation

@dudwns
Copy link
Contributor

@dudwns dudwns commented Mar 18, 2025

๐Ÿ“‘ ์ด์Šˆ ๋ฒˆํ˜ธ

๐Ÿšง ๊ตฌํ˜„ ๋‚ด์šฉ

  • apiClient, apiServer ์œ ํ‹ธ๋ฆฌํ‹ฐ ํ•จ์ˆ˜๋ฅผ ํด๋ž˜์Šคํ˜•์—์„œ ํ•จ์ˆ˜ํ˜•์œผ๋กœ ๋ณ€๊ฒฝํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • services์˜ Fetch ํ•จ์ˆ˜๋ฅผ Tanstack-Query๋กœ ํ†ตํ•ฉ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค. (useQuery, useMutation)
  • ์ˆ˜๋™์ ์ธ refetch ํ•จ์ˆ˜์™€ invalidateQuery ํ•จ์ˆ˜๋ฅผ ์ œ๊ฑฐํ•˜๊ณ , ๋ฐ์ดํ„ฐ๊ฐ€ ๋ณ€๊ฒฝ๋˜๋ฉด query key ๋ฐ mutation ํ•จ์ˆ˜ ๋‚ด์—์„œ ์ž๋™์œผ๋กœ refetch ๋˜๋„๋ก ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ํ”„๋กœํ•„ ์ˆ˜์ • ์‹œ ์‚ฌ์ด๋“œ๋ฐ”, ํ”„๋กœํ•„ ์ˆ˜์ • ํผ์— ๋ณ€๊ฒฝ๋œ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ฐ˜์˜๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๋ฅผ ๋ฐœ๊ฒฌํ•˜์—ฌ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • PWA ๊ธฐ๋Šฅ์ด ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์—์„œ๋Š” ๋™์ž‘ํ•˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค. (๋นŒ๋“œ ์†๋„ ๋ฐ ๋””๋ฒ„๊น… ๋กœ๊ทธ์— ์˜ํ–ฅ)
  • ์ธ๊ธฐ ๋งํฌ ๋ฆฌ์ŠคํŠธ ๋ฐ์ดํ„ฐ๊ฐ€ HTML ์ฝ˜ํ…์ธ ์— ํฌํ•จ๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๋ฅผ ๋ฐœ๊ฒฌํ•˜์—ฌ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿšจ ํŠน์ด ์‚ฌํ•ญ

NEXT API ๋ผ์šฐํ„ฐ ๊ฒฝ๋กœ ๋ณ€๊ฒฝ์ 

๋กœ๊ทธ์ธ ๊ด€๋ จ
/api/auth-user -> /api/auth

๋งํฌ ์กฐํšŒ ์ •๋ณด
/api/space/${spaceId}/links/readInfo -> /api/space/${spaceId}/links/readInfo/${linkId}

dudwns added 30 commits March 12, 2025 23:06
dudwns and others added 2 commits March 17, 2025 17:14
๋ถˆํ•„์š”ํ•œ Refetch ๊ฐ์†Œ ์ž‘์—…
@dudwns dudwns added the ๐ŸŒŽ Deploy ๋ฐฐํฌ ๊ด€๋ จ label Mar 18, 2025
@dudwns dudwns self-assigned this Mar 18, 2025
@dudwns dudwns merged commit c2d487a into main Mar 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

๐ŸŒŽ Deploy ๋ฐฐํฌ ๊ด€๋ จ

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants