소스 검색

docs: fix typo in `subscribeAction` api (#1727)

Alexander Sokolov 5 년 전
부모
커밋
0bbad8c2ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/api/README.md

+ 1 - 1
docs/api/README.md

@@ -213,7 +213,7 @@ const store = new Vuex.Store({ ...options })
   By default, new handler is added to the end of the chain, so it will be executed after other handlers that were added before. This can be overriden by adding `prepend: true` to `options`, which will add the handler to the beginning of the chain.
 
   ``` js
-  store.subscribe(handler, { prepend: true })
+  store.subscribeAction(handler, { prepend: true })
   ```
 
   To stop subscribing, call the returned unsubscribe function.