code: function createCreateEntityActions(action, getState) {
    const dataPath = get(action, 'meta.dataPath');
    const schema = get(action, 'meta.schema');
    const skipNormalization = get(action, 'meta.skipNormalization');
    const data = skipNormalization ? get(action, dataPath) : normalizeData(schema, get(action, dataPath));
    return Object.keys(data.entities)
      .map((key) => ({ entities: data.entities[key], key }))
      .reduce((memo, entitiesAndKey) => [ ...memo, ...extractEntities(entitiesAndKey) ], [])
      .map((entity) => ({ ...entity, oldEntity: getFromState(getState(), entity.key, entity.entity.id) }))
      .sort(sortMainFirst(schema))
      .map((payload) => {
        if (payload.oldEntity) {
          return {
            type: `@@entman/UPDATE_ENTITY_${payload.key.toUpperCase()}`,
            payload,
          };
        }
        return {
          type: `@@entman/CREATE_ENTITY_${payload.key.toUpperCase()}`,
          payload,
        };
      });
  }
docs: }}}