Skip to content

Commit

Permalink
[from now] 2021/02/12 06:58:58
Browse files Browse the repository at this point in the history
diff --git a/articles/vuex4-with-typescript-and-composition-api.md b/articles/vuex4-with-typescript-and-composition-api.md
new file mode 100644
index 0000000..5c5eb77
--- /dev/null
+++ b/articles/vuex4-with-typescript-and-composition-api.md
@@ -0,0 +1,29 @@
+---
+title: "Vuex4 から始める Vuex 〜TSとComposition API を添えて〜"
+emoji: "4️⃣"
+type: "tech" # tech: 技術記事 / idea: アイデア
+topics: ["vue", "vuex", "typescript"]
+published: false
+---
+
+## 疑問
+
+- getters は Composition API でどう使うの?
+  - mapGetters は CompositionAPI で使えない。
+- Composition API で書いた場合と Optional API で書いた場合の比較
+- mutations, actions 違いは何?
+  - dispatch と commit は?
+  - mutations の実行は commit
+  - actions の実行は dispatch
+
+# 参考
+
+- [vuex/examples/composition at 4.0 · vuejs/vuex](https://github.com/vuejs/vuex/tree/4.0/examples/composition)
+
+useXXX を作りたいための Issue
+
+- [Add useXXX helpers · Issue #1725 · vuejs/vuex](vuejs/vuex#1725)
+
+Vuex で compositionAPI を使うためのライブラリ
+
+- [greenpress/vuex-composition-helpers: A util package to use Vuex with Composition API easily.](https://github.com/greenpress/vuex-composition-helpers#typescript-mappings)
  • Loading branch information
kawamataryo committed Feb 11, 2021
1 parent 4387f70 commit 42492e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions articles/vuex4-with-typescript-and-composition-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Vuex4 から始める Vuex 〜TSとComposition API を添えて〜"
emoji: "4️⃣"
type: "tech" # tech: 技術記事 / idea: アイデア
topics: ["vue", "vuex", "typescript"]
published: false
---

## 疑問

- getters は Composition API でどう使うの?
- mapGetters は CompositionAPI で使えない。
- Composition API で書いた場合と Optional API で書いた場合の比較
- mutations, actions 違いは何?
- dispatch と commit は?
- mutations の実行は commit
- actions の実行は dispatch

# 参考

- [vuex/examples/composition at 4.0 · vuejs/vuex](https://github.com/vuejs/vuex/tree/4.0/examples/composition)

useXXX を作りたいための Issue

- [Add useXXX helpers · Issue #1725 · vuejs/vuex](https://github.com/vuejs/vuex/issues/1725)

Vuex で compositionAPI を使うためのライブラリ

- [greenpress/vuex-composition-helpers: A util package to use Vuex with Composition API easily.](https://github.com/greenpress/vuex-composition-helpers#typescript-mappings)

0 comments on commit 42492e3

Please sign in to comment.