Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tca 아키텍쳐로 화면 구현시 다른 뷰를 불러올 때 나타나는 오류 #1

Closed
MoSonLee opened this issue Apr 8, 2022 · 0 comments

Comments

@MoSonLee
Copy link
Owner

MoSonLee commented Apr 8, 2022

image

  • Cannot convert value of type 'Store<WithSharedState, recordAction>.Type' to expected argument type 'Store<WithSharedState, recordAction>'
  • 라는 오류가 뜬다. 내 생각엔 recordView의 state와 액션을 받아올 수 없는 것 같다.
  • store로 여러가지 방법으로 선언을 해줘봤지만 오류가 난다.
  • 무엇이 문제일까!

해결

image

image

  • 오류가 났던 이유: HomeView/Core에서 RecodeState, Action, environment에 대해 만들어진 store타입이 없기 떄문.
  • 해결: homeCore에서 record,collection의 action, state의 값을 pullback 해준 후 선언해줘야한다.
@MoSonLee MoSonLee closed this as completed Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant