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

Diary가 제대로 Count 되지 않는 오류 #11

Closed
MoSonLee opened this issue Jun 20, 2022 · 0 comments
Closed

Diary가 제대로 Count 되지 않는 오류 #11

MoSonLee opened this issue Jun 20, 2022 · 0 comments

Comments

@MoSonLee
Copy link
Owner

MoSonLee commented Jun 20, 2022

Issues

  • Diary가 set 될때 + delete 될때 바로바로 diary가 count되지 않는 issues
  • Simulator Screen Recording - iPhone 13 Pro Max - 2022-06-18 at 12 27 40

Soultion

  • onAppear됐을 때 setDiary, diaryCount 로직을 실행해주었었는데 setDiary가 시간이 걸리기에 되기전에 diaryCount가 되어버려서 무조건 0으로 뜨는 문제였다.
  • 해결법: setDiary, deleteDiary를 하는 함수 로직에서 return을 diaryCount 로직을 반환해주면 바로바로 갱신되는 모습을 볼 수 있었다.!
  • Simulator Screen Recording - iPhone 13 Pro Max - 2022-06-18 at 00 47 29
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