Skip to content

Instantly share code, notes, and snippets.

@DTwigs
DTwigs / lead_dist_reducer_actions
Last active September 29, 2016 18:28
Leads Reducer Actions and APi Calls
Leads Actions:
populateLeadsSaga = (Triggered by location change)
GetLeads (URL: /leads/?location=:location_id)
if (lead_id exists in url && lead_id in index)
open modal
else if (lead id exists in url)
GetLead (URL: /leads/:lead_id)