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

cause hight cpu usage to 100%, when swipe back with gesture #10

Open
oblank opened this issue Apr 9, 2020 · 2 comments
Open

cause hight cpu usage to 100%, when swipe back with gesture #10

oblank opened this issue Apr 9, 2020 · 2 comments

Comments

@oblank
Copy link

oblank commented Apr 9, 2020

when AView.sheet(BView) with navigation。

B view is a list, with codes:

...
.onAppear {
            store.dispatch(action: TasksActions.FetchMine())
 }
...

1, touch BView's list item , navigation into CView (just a detail view)
2, now, swipe back a little with gesture(C->B), and then cancel swipe,will recreate this issues

when comment store.dispatch... ,it work well

@ethanyuwang
Copy link

I'm seeing some low frames when navigation and store.dispatch happen at the same time too. Did you fix this?

@djrobby
Copy link

djrobby commented Dec 8, 2020

Have you guys tried the following:

.onAppear {
  DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
    store.dispatch(action: TasksActions.FetchMine())
  }
}

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

3 participants