roman-holovin/tempos-application

Move navigation drawer state to store

Opened this issue · 0 comments

At this moment, there is 3 types of the menu items in navigation drawer:

  • show all tasks
  • show task by project
  • navigate to another screen

First and second ones are changing context, which is a part of the state in store, and screen are requesting data according to the current context. Third one is handled by router.

Both of this cases can be handled by router:

  • show all tasks - /
  • show tasks by project - /?project=projectName
  • navigate to another screen - /settings, etc

Also, opened/closed navigation drawer state can be moved to store, this should decrease component coupling and provide a nice way to control drawer via actions rather than via ref method calls.