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

Is there a right way to add a callback/completion block to dispatch? #3

Open
guyschlider opened this issue Dec 23, 2019 · 1 comment

Comments

@guyschlider
Copy link

Lets say I want to dispatch, wait for a response, and do other stuff.
Any ideas what is the best practice to do so?

@johnsusek

@johnsusek
Copy link
Owner

Hey - I'm not really sure about this.

I should mention, I haven't been following SwitfUI at all lately and Fluxus is probably way out of date and not using the latest SwiftUI patterns.

You might want to research other flux/state management libraries for SwiftUI for anything except throwaway projects.

I would also encourage you to look at how small Fluxus actually is... it's really just a pattern, nothing magical:

https://github.com/johnsusek/fluxus/blob/master/Sources/Fluxus/Fluxus.swift

Hopefully that's a starting point for you to figure this out.

-John

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

2 participants