Skip to content

Commit b68aa5b

Browse files
authored
persist user store bug fix (#994)
* feat(user-store): add persisted state for user data - Use pinia-plugin-persistedstate - Replace userAvatar with avatar - Clear user store on logout - Add clearStore action to UserStore - Update computed properties in Navbar component * feat(vite.config.js): add external dependency for build - Add 'pinia-plugin-persistedstate' to external in DEV_CONFIG - Add 'pinia-plugin-persistedstate' to external in PROD_CONFIG * fix(deps): update nodejs and package dependencies - upgrade nodejs to 18.17.1 - add pinia-plugin-persistedstate - remove pinia-plugin-persistedstate from external - update various package versions in yarn.lock
1 parent ce2f047 commit b68aa5b

File tree

4 files changed

+675
-5
lines changed

4 files changed

+675
-5
lines changed

frontend/.tool-versions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
nodejs 18.6.0
1+
nodejs 18.17.1
2+

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"micromatch": "^4.0.8",
3030
"parse-md": "^3.0.3",
3131
"pinia": "^2.2.2",
32+
"pinia-plugin-persistedstate": "^4.2.0",
3233
"terser": "^5.33.0",
3334
"timeago.js": "^4.0.2",
3435
"tippy.js": "^6.3.7",

frontend/vite.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const DEV_CONFIG = {
3838
rollupOptions: {
3939
treeshake: false,
4040
input: getHtmlEntryFiles("src"),
41-
external: ['pinia-plugin-persistedstate'],
4241
output: {
4342
manualChunks(id) {
4443
if (id.includes("node_modules")) {
@@ -84,7 +83,6 @@ const PROD_CONFIG = {
8483
build: {
8584
rollupOptions: {
8685
input: getHtmlEntryFiles("src"),
87-
external: ['pinia-plugin-persistedstate'],
8886
output: {
8987
manualChunks(id) {
9088
if (id.includes("node_modules")) {

0 commit comments

Comments
 (0)