π οΈ Mutation μλ£ ν μλ² μν λκΈ°ν #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
μμ μ΄μ
μμ μ¬ν
1οΈβ£ Mutation μλ² λκΈ°ν
μ’μμ API νΈμΆ νμ μλ²μμ λκΈ°νκ° μ§νλμ§ μλ λͺ¨μ΅
API νΈμΆμ΄ μλ£λ μ΄ν μλ² μνμ λκΈ°νλ₯Ό μ§ννμ§ μκ³ μκΈ° λλ¬Έμ, μ¬μ΄λ μ΄ννΈλ‘ μλ²μμ μνκ° λΆμΌμΉνλ νμμ΄ λ°μν μ μμ΅λλ€.
μ΄λ₯Ό ν΄κ²°νκΈ° μν΄ κΈ°μ‘΄ mutation hooks μ onSettled μ΅μ μ νμ©νμ¬, mutationμ΄ μλ£λ κ²½μ° ν΄λΉ 쿼리λ€μ 무ν¨νμμΌ λ€μ μλ²λ‘λΆν° λ°μμ€λλ‘ μμ νμμ΅λλ€.
μ’μμ API νΈμΆ νμ μλ²μμ λκΈ°νκ° μ§νλλ λͺ¨μ΅
2οΈβ£ Mutation 쿼리 무ν¨ν
κΈ°μ‘΄μ 쿼리 무ν¨νλ₯Ό νΌλ μμΈ νμ΄μ§λ₯Ό μκ°νμ¬ μλμ λ 쿼리λ₯Ό μ΄κΈ°ννκ³ μμμ΅λλ€.
QUERY_KEYS.feeds
[QUERY_KEYS.feed, feedID]
곡μ λ¬Έμλ₯Ό νμΈνμ λ, 쿼리 무ν¨νμ startWithλ₯Ό κ°μ§κ³ λͺ¨λ 쿼리λ₯Ό 무ν¨νλ€κ³ λμμμ΅λλ€. κ·Έλμ νΌλ λν μΌμ λν 쿼리λ₯Ό
QUERY_KEY.feed, feedId
->QUERY_KEY.feeds, feedId
λ‘ μμ νμμ΅λλ€.리뷰μ΄κ° μ€μ μ μΌλ‘ νμΈν΄μΌ νλ λΆλΆ
λ°κ²¬ν μ΄μ