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

Auto search on type without having to return #53

Closed
bowojori7 opened this issue May 29, 2018 · 4 comments
Closed

Auto search on type without having to return #53

bowojori7 opened this issue May 29, 2018 · 4 comments

Comments

@bowojori7
Copy link

Been thinking about this for a while now and it's been mind boggling coming up with how to implement automatically searching when a user types with flutter_redux.
I found this repo https://github.com/brianegan/dart_redux_epics and I feel like this is the correct way to do it after checking out the readme file.
My questions are:

  1. Can redux_epics including rxdart be combined with flutter_redux for this use case? If yes how will I go about doing this??
  2. Is there a way to achieve what I'm trying to with just flutter_redux and plain middlewares? If yes, help would be greatly appreciated.

Thank you.

@brianegan
Copy link
Owner

brianegan commented May 31, 2018

Hey there :)

  1. Yep! redux_epics is built to work with Redux.dart. The search autocomplete example on that Repo is a demonstration of how powerful it is to combine RxDart + Redux (using Redux Epics). That said, if you don't know Redux or RxDart that well, it might look mind-blowing. https://github.com/brianegan/dart_redux_epics#autocomplete-using-debounce
  2. Yep! You could totally write your own middleware function that handles this as well. In this case, you'll need to manually manage some timers and ensure you cancel any previous searches, but it's totally possible.

I've adapted another Search demo I've got for RxDart to work for Redux. I've tried to leave comments throughout to help out. You can find it here: https://github.com/brianegan/flutter_redux/blob/master/example/github_search/lib/redux.dart

Hope that helps! Lemme know if ya have more Qs.

https://github.com/brianegan/flutter_redux/tree/master/example/github_search

@brianegan brianegan reopened this May 31, 2018
@brianegan
Copy link
Owner

Hey @bowojori7, did this solve your issue and help ya out? Let me know or if it's cool to close this out :)

@bowojori7
Copy link
Author

I'm so sorry @brianegan. I've been so busy this past week. Not had time to check. I'll try this soon and get back to you.
So sorry.
Thanks for the awesome help.

@brianegan
Copy link
Owner

Heya @bowojori7 -- I'll go ahead and close this issue for now, but please feel free to write back if ya need more help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants