Skip to content

「データフェッチ」の質問 #84

Closed Answered by nalpan
tokuda109 asked this question in ハンズオン Q&A
Discussion options

You must be logged in to vote

@ubugeeei さん口頭解説の要点をまとめます

  • fetch APIは環境依存(ブラウザ、Node.js...)が激しい、Nuxtの機能を使うと差異を吸収でき楽
  • $fetchのラッパーがuseAsyncData、useAsyncDataのラッパーがuseFetchとなっている
    • 細かい制御をやるなら$fetch、良くも悪くも細かい制御ができないのがuseFetch

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nalpan
Comment options

Answer selected by ubugeeei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants