Skip to content

How to implement create and update? #39

@oiwn

Description

@oiwn

For instance i have a code like this:

  // domains
  domainListDetails: {
    url: `clients/:clientId/campaigns/:campaignId/domainlists/4/domains`,
    options: getDefaultOptions('get'),
  },  // store array or results
  addDomainToDomainList: {
    reducerName: 'domainListDetails',
    url: `clients/:clientId/campaigns/:campaignId/domainlists/4/domains`,
    options: getDefaultOptions('post'),
  }, // this will overwrite array in store by one updated result

but when i dispatch addDomainToDomainList the API returned one updated result which passed to store and just overwrite list already stored inside.

How can i implement update one element in the list?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions