Skip to content

Commit 622c941

Browse files
committed
chore: add missing file
1 parent ec15a77 commit 622c941

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import { createPinia } from 'pinia'
8282
app.use(createPinia())
8383
```
8484

85-
This will also add devtools support.
85+
This will also add devtools support. Some features like time traveling and editing are still not supported because vue-devtools doesn't expose the necessary APIs yet.
8686
**NOTE**: this API is still experimental and is currently only used for devtools and SSR but that might change in the future.
8787

8888
### Creating a Store

src/deprecated.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineStore } from './store'
2+
3+
export const createStore = ((options: any) => {
4+
console.warn(
5+
'[🍍]: "createStore" has been deprecated and will be removed on the sable release, use "defineStore" instead.'
6+
)
7+
return defineStore(options)
8+
}) as typeof defineStore

0 commit comments

Comments
 (0)