cheshire137 / gh-notifications-snoozer

Lists and filters and snoozing pull requests, oh my! This is an app for managing your notifications on GitHub by way of filtering issues and pull requests that are of interest to you.
MIT License
15 stars 10 forks source link

Update tasks automatically #115

Closed probablycorey closed 7 years ago

probablycorey commented 7 years ago

This solves three problems:

  1. Every 60 seconds it will iterate through all filters and fetch the updated tasks
  2. When you launch the app it will iterate through all filters and fetch the updated tasks
  3. When you update a filter it will fetch the updated tasks for that filter

To do this I pulled the some dispatches into a class called HelperActions. This is common in Redux. What's not common is passing in the dispatcher to the actions. But these actions require multiple dispatches, so I couldn't think of a good way around it.

@cheshire137