firebaseStateReducer

Reducer for react redux firebase. This function is called automatically by redux every time an action is fired. Based on which action is called and its payload, the reducer will update redux state with relevant changes.

Parameters

  • state Map Current Redux State
  • action Object Action which will modify state
    • action.type String Type of Action being called
    • action.data String Type of Action which will modify state

Returns Map Redux State.

results matching ""

    No results matching ""