lore-hook-auth

Provides an action and reducer dedicated to fetching the current user

Dependencies

This hook depends on:

  • lore-hook-models
  • lore-hook-actions
  • lore-hook-reducers
  • lore-hook-connect

Because this hook generates actions, it needs the models and collections to exist before it runs.

The actions dependency comes from the fact that it is extending the default actions, and so it expects lore.actions to exist before it runs.

The reducers dependency comes from the fact that it is extending the default reducers, and so it expects lore.reducers to exist before it runs.

The connect dependency comes from the fact that it modifies the reducerActionMap in for the connect decorator, in order to link the currentUser.get action that it generates to the currentUser reducer that it generates.