inflearn logo
강의

Course

Instructor

TypeScript with Vue Practical Project

Implementing Vuex Module Interface to Separate Store

moduleA.store.ts내에서 RootState가 하는일은 무엇인가요?

208

kh

7 asked

0

moduleA.store.ts내에서 RootState가 하는일은 무엇인가요?

store.ts에서 export한 RootState가 moduleA에서는 굳이 하는일이 없어 보이는데, Module<moduleA, RootState>에 RootState를 적지 않으면 에러가 발생하더군요.

어짜피 moduleA의 store state는 interface moduleA {...} 에서 정의하는 것같은데 굳이 RootState가 왜 필요한지 궁금합니다

vuejs

Answer 0

소스 공유좀 해주세요

0

275

0

target null 에러뜨시는 분들

0

357

0

라우터 구조잡기 소스

0

316

0

새로 추가한 인스턴스 상태 관리

0

285

0

App.vue의 $store

0

220

0

npm run serve 에러

0

254

0

Cannot find module '@/components/message.vue' or its corresponding type declarations.

0

1195

2

prop !

0

216

0

@ MutationActions

0

191

0

mapGetters 내 정의가 안되요 ㅠ

0

288

0

안녕하세요! @Prop() readonly id(느낌표):string; 에서 !(느낌표) 를 찍는 이유가 궁금합니다 :)

0

255

0

store 사용 방법 관련 질문입니다.

0

291

1

removeItem 에서 element 가 하나 남았을 때 삭제가 되지 않는 문제

0

431

2

Property '$route' does not exist on type 'ItemList'. 이 에러는 무엇인가요..?

0

906

1

Cannot find module '@/components/message.vue'.

0

2976

6

@Action, @Mutation 등으로 지정된 변수의 타입

0

264

1

안녕하세요. 강의 잘 들었습니다.

0

194

0

Axios Post보낼때 어떤 식으로 구성하는게 좋을까요?

0

709

1

안녕하세요! v-for(v-bind:key), slice() 관련 질문이 있어요!

2

737

3

에러 표시 질문이요!

1

470

3

vuex-module-decorators 보다 오리지널 모듈 형태를 선호하시는 이유가 무엇이신가요?

1

417

2

안녕하세요. 초기 셋팅시 질문있습니다.

1

354

2

안녕하세요! Vuex, actions 질문이 있습니다.

1

349

2

클래스 속성 에러는 무엇인가요??

1

205

1