Sha256: 212d600332ff997255097445688bd961dfc0418e2325bb1d5b053c41aed73e5a

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

import UpdatePageMutation from './mutations/update_page_mutation';
import UpdatePageLinkMutation from './mutations/update_page_link_mutation';

var mutations = {
  updatePage: UpdatePageMutation,
  updatePageLink: UpdatePageLinkMutation
};

export default function(mutationName, props) {
  var mutation = mutations[mutationName];

  if (!mutation) {
    throw `Unknown mutation ${mutationName}`;
  }

  return new mutation(props).perform();
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/src/mutate.js
pageflow-react-0.1.0 js/src/mutate.js