pinia
pinia copied to clipboard
π Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
There were no devtools unittests afaics, so I added a new file. Usually devtools are not loaded during unit tests, so I had to do the testing on the inner-most...
### Reproduction https://github.com/yoshrubin/pinia-ssr-bug ### Steps to reproduce the bug 1. run `yarn build && yarn start` ### Expected behavior To return a cached version of the getter ### Actual behavior...
Update some codes from English version document, and translate the comments into Chinese.
getters ζζ‘£δΈη€ΊδΎδ»£η εηΈε ³εΊη¨οΌε―ΌεΊειεε―Όε ₯εη§°δΈδΈθ΄οΌηΌΊδΉδΈθ΄ζ§εθΏθ΄―ζ§
The docs reference three methods of using a store: - Using the store instance - Using computed properties - Using `storeToRefs()` These are blended together under "_Using the store_" and...
When yarn installing this package, I receive the following error: ``` β€ YN0000: β Resolution step β€ YN0002: β @pinia/testing@npm:0.0.14 [329d6] doesn't provide vue (pa561a), requested by vue-demi β€ YN0000:...
Another attempt to contribute to #1394 π In tests, I'm getting various warnings because those tests are using duplicated names for stores. I'm not sure how to approach this in...
### Reproduction https://github.com/bodograumann/pinia-testing-dev-tools-compat ### Steps to reproduce the bug 1. Clone the repo 2. `npm install` 3. `npm run dev` 4. Open browser at http://localhost:5173 ### Expected behavior The testing...
### Reproduction https://codesandbox.io/p/sandbox/cocky-butterfly-51pk2y?file=%2Fsrc%2Fstores%2Fcounter.js ### Steps to reproduce the bug 1. Click counter button 2. Check the `mutation` event on the Timeline tab in DevTools ### Expected behavior `oldValue` shows the...