Skip to content

Commit

Permalink
docs: Replaced createMapper with createComposable in the composit…
Browse files Browse the repository at this point in the history
…ion api description example (#469)
  • Loading branch information
vdkrasny authored Jul 5, 2021
1 parent 0af674f commit 881480b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,14 @@ If you prefer composition api for binding a store module to a component, you can

```ts
// @/store/modules/foo
import { Module, createMapper } from 'vuex-smart-module'
import { Module, createComposable } from 'vuex-smart-module'

// Create module
export const foo = new Module({
// ...
})

// Create mapper
// Create composable function
export const useFoo = createComposable(foo)
```

Expand Down

0 comments on commit 881480b

Please sign in to comment.