Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- fastapi router
- vite이미지캐싱
- 파이썬 경로추가
- msw
- tiptap slash command
- store router
- vue2.7
- vite
- tiptap custom command
- vue3
- vue3이미지캐싱
- spring dynamic scheduler
- mock service worker
- aws db 생성
- pinia
- spring 동적 스케줄러
- tiptap 에디터
- mockserviceworker.js
- 프로필이미지캐싱
- fastapi 라우터
- vue composable
- threadpooltaskscheduler
- branch 이름 변경
- aws mariadb
- vite.config.js
- tiptap
- python path
- vue mixin
- springboot dynamic scheduler
- tiptap vue3
Archives
- Today
- Total
gomstory
pinia store에서 vue-router 사용하기 본문
web push를 구현하다가 store에서 router를 이동해야 할 일이 생겼다.
평소처럼
import { useRouter } from 'vue-router'
const router = useRouter()
했는데
왜..
구글링 시작
https://stackoverflow.com/questions/70681667/cant-use-vue-router-and-pinia-inside-a-single-store
Can't use vue-router and pinia inside a single store
I am using pinia and vue-router 4.x ,but i am having a problem using both of them in a store. each works independently ,but not together. If i use import router from '../router' router will work but
stackoverflow.com
갓택오버플로우 천재발견
https://pinia.vuejs.org/core-concepts/plugins.html
Pinia | The intuitive store for Vue.js
Intuitive, type safe, light and flexible Store for Vue
pinia.vuejs.org
래핑하니까 정상동작한다!
공식문서에는 없는게 없다
'Vue.js' 카테고리의 다른 글
vite-plugin-pwa를 통한 Service Worker 기반 캐싱(feat. 유저 프로필 이미지) (0) | 2025.06.20 |
---|---|
MSW(Mock Service Worker) 적용 및 삽질로그(with Vue3/Vite) (0) | 2024.10.05 |
Vue2.7 Mixin -> Composable (0) | 2024.08.23 |