pinia icon indicating copy to clipboard operation
pinia copied to clipboard

🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support

Results 60 pinia issues
Sort by recently updated
recently updated
newest added

Close #2658 Fix: Return type of storeToRefs doesn't match runtime result if values are nested computed values #2658

### Reproduction https://play.pinia.vuejs.org/#eNqdVd1O2zAUfhUrN2ml1hliYhK0CJi42C7YBFzmJiSnqVliW7ZTilAvd7dH2F5uT7Jju3FSyApC6o9z/r7Pn31OnqJzKemqgeg4mulcMWmIBtNIUmW8nKeR0Wl0mnJWS6EMeSIGtLkxQgHZkIUSNYlpEmy34hoWmhodn/RSdOcKSZJxltmoXHCNkK7ivKs+GqMv5UlC/v7+SXJRy8ZAcU7MowTCNCYoxkufLiqglShHsatCQ3A88XU7y07RLM9ZAdxkVfV4hbhQfN7GXQSY1oLcZx4StRjA3FOLrrKqgcDl1UjP0bG0avTVa9VSVsl53zNy61c0G9gMebYbW7mTK1AfMo9PMNmj/flFDB5JU5ZIWL9XWPKwZPnSOhmSUgpyQzJNzBKIarhhNf6DbiqUpEVy8IyTRYaxDD8W3DQWmGQ7GAN4p3Ro8285ybcF+tOYJb6r8N7gg4FaVpkBfJph24SHaBL5dpnWmaT3WnDsx6eUE5JuHdiGx8RZrM21j7WkUeLWFHQ9vVPiQYPC/DSatKFn2NxJASsjRKWnmWQ+bWmM1MdJkhcc4wuo2EpRDibhsk5e5Jwd0SN6kFTsLkGghPEC1rswmDEtoH5L9Tb07AM9+Eg/uaqrw23R2la1RTcp36AsRuMZLVj5TBR7GVkF6ps0DM9wRxw8EfHw1dmMaiBQzJeQ/xiw3+u1Z/0d7xeoFfS2ZTJVgvHuy5srWOM6OGtRNBVG73FeA96vxnL0YRcNL5B2L86x/eLOGG/lrb5cG+C63ZQl6tRw8U5me83+t/WO7iE97Kv4YkKjlGFAt50dpjOi4GxWvRlewIJx2B387QzHOPuFtYv1I6p7Tcz7uaM4OLCPRmMyP0XymGzp+8xubs3Dum3Zkc+Isxibaydr38zp6mzze+8DYsfswEwamhftRi2qwnek4h13y2NbdNLZ9rAKURu3k83Y/kabfxlDqWo= ### Steps to reproduce the bug It happens if you accidentally created a nested computed values and use storeToRefs. ```ts export const testStore = defineStore('testStore', () =>...

contribution welcome
typescript

Will be updating this probably a few days earlier, will let you know when this is ready to be merged

Will be updating this probably a few days earlier, will let you know when this is ready to be merged

As discussed with @posva this is for displaying our conference promotional banner in may 2024.

### What problem is this solving Would be cool to have an Eslint plugin that provides best practices. E.g. With a setup store all variables need to be exported (according...

contribution welcome

### Reproduction https://github.com/bodograumann/pinia-hmr-optional-attributes ### Steps to reproduce the bug 1. `git clone https://github.com/bodograumann/pinia-hmr-optional-attributes` 2. `cd pinia-hmr-optional-attributes` 3. `npm install` 4. `npm run dev` 5. `xdg-open http://localhost:5173` 6. Press the "Increment"...

discussion
HMR 🔥

### Reproduction [old with vue 3.4.13](https://play.pinia.vuejs.org/#eNqNVE1v2zAM/SuCL0nRRGqRrocsCdIVPXSHbVh2m3dwbCZRa31AktMAgf/7KMlxvtoigGFIFPn4SEpvmzxoTdcVJMNkZHPDtZukkgutjCNbUll4VJV0YGZOGSA1WRglSIeyPJo7B84i0zOXOej51UPuuJK2jdBc8qzzNZWwCe4FLLKqxLBUEpIroSsHxTBuCaV0B9Y9odAjfzshd+fflfete/4vwK1UYXfxDUDD4T0ILnMDAvYwqcRvxNoW4MaB0CVSwB0hIz3ZbpEowpC6HjEdrfPKOSXJNC95/jpOkxY3TSbPu/WIRTcMGbEWNeklsXV9pEpfrJI4g8AfYcKBTZO2ojQJHfSWNGFhTcGK/tyoNwsG49MktMK7TnGgrIC1U6q0/UzzGLZyTtshY3kh0b+Akq8NleCY1IKdxUzv6Rd6y0o+Z5iIcVnA5jgNRvQLEJeg71ynN/T2jt4H1PWgARWnqJfSNTgNLhBZiemA3tHbASu4dYf2j5vkAdC4BtM3gDwMmEvznoQd5T45O8u/u204fmdzJRd8eTJ8/xp4CeanDtf36BJkZanevgebMxW0xeQryF/fsb/YTSzql4HA7KABLjNLwIvqj59mP2CD6/ZQqKIqm0F8cPgbrCorzzG6fatkgbQP/ALb53CXuVz+sU8bB9LuivJE9084DOTxk9L3dAd0cNDFRomos9jCVoxQX7iEY9WKGuTfdiNC2H7rzkRufBjcjWqDSteLVKxXpSHpXpHxhHQbSRiSG1JfhTqyKDot8VYRMKIxEeJW3NIQeX0dbbEJ/l+jICX1f3I65QM=) [broken with 3.4.19](https://play.pinia.vuejs.org/#eNqNVE1v2zAM/SuCL0nRRGqRosOyJEhX9NAdtmHZbd7BsZlErfUBSU4DBP7voyTH+WqHAIYhUeTjIym9bfKgNV1XkAyTkc0N126SSi60Mo5sSWXhUVXSgZk5ZYDUZGGUIB3K8mjuHDiLTM9c5qDnVw+540raNkJzybPOl1TCJrgXsMiqEsNSSUiuhK4cFMO4JZTSHVj3hEKP/OmE3J2/V9637vm/ALdShd3FNwANh/cguMwNCNjDpBK/EWtbgBsHQpdIAXeEjPRku0WiCEPqesR0tM4r55Qk07zk+es4TVrcNJk879YjFt0wZMRa1KSXxNb1kSp9sUriDAJ/hAkHNk3aitIkdNBb0oSFNQUr+nOj3iwYjE+T0ArvOsWBsgLWTqnS9jPNY9jKOW2HjOWFRP8CSr42VIJjUgt2FjO9p/f0lpV8zjAR47KAzXEajOgXIC5B37lOb+jtHf0UUNeDBlScol5K1+A0uEBkJaYDekdvP7OCW3do/7hJHgCNazB9A8jDgLk070nYUe6Ts7P8u9uG43c2V3LBlyfD96+Bl2B+6HB9jy5BVpbq7VuwOVNBW0y+gvz1HfuL3cSifhoIzA4a4DKzBLyo/vhp9h02uG4PhSqqshnEB4e/wKqy8hyj29dKFkj7wC+wfQ53mcvlb/u0cSDtrihPdP+Ew0Ae/1P6nu6ADg662CgRdRZb2IoR6guXcKxaUYP8225ECNtv3ZnIjQ+Du1FtUOl6kYr1qjQk3SsynpBuIwlDckPqq1BHFkWnJd4qAkY0JkLcilsaIq+voy02wf9rFKSk/geXaOUR) ### Steps to reproduce the bug click button ### Expected behavior increment ### Actual behavior nothing happens ### Additional information Vue...

bug
contribution welcome
upstream

### Reproduction Apparently, using exported pinia-stores from npm packages doesn't work as expected. There seems to be an issue with either the context pinia is running in (and conflicts with...

Update the Chinese docs https://github.com/vuejs/pinia/compare/c67a5c9...02a476d