Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/reference-guides/data/data-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ _Parameters_
- _edits_ `Object`: The edits.
- _options_ `Object`: Options for the edit.
- _options.undoIgnore_ `[boolean]`: Whether to ignore the edit in undo history or not.
- _options.isCached_ `[boolean]`: Whether the edit is transient (e.g. typing). Transient edits are staged and eventually merged into the preceding undo level instead of creating a new one.

_Returns_

Expand Down
1 change: 1 addition & 0 deletions packages/core-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ _Parameters_
- _edits_ `Object`: The edits.
- _options_ `Object`: Options for the edit.
- _options.undoIgnore_ `[boolean]`: Whether to ignore the edit in undo history or not.
- _options.isCached_ `[boolean]`: Whether the edit is transient (e.g. typing). Transient edits are staged and eventually merged into the preceding undo level instead of creating a new one.

_Returns_

Expand Down
14 changes: 3 additions & 11 deletions packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
/**
* External dependencies
*/
import fastDeepEqual from 'fast-deep-equal/es6/index.js';
import { v4 as uuid } from 'uuid';

/**
* WordPress dependencies
*/
import apiFetch from '@wordpress/api-fetch';
import { addQueryArgs } from '@wordpress/url';
import deprecated from '@wordpress/deprecated';

/**
* Internal dependencies
*/
import { clearUnchangedEdits, getNestedValue, setNestedValue } from './utils';
import { receiveItems, removeItems, receiveQueriedItems } from './queried-data';
import { DEFAULT_ENTITY_KEY } from './entities';
Expand Down Expand Up @@ -445,6 +434,9 @@ export const deleteEntityRecord =
* @param {Object} edits The edits.
* @param {Object} options Options for the edit.
* @param {boolean} [options.undoIgnore] Whether to ignore the edit in undo history or not.
* @param {boolean} [options.isCached] Whether the edit is transient (e.g. typing). Transient
* edits are staged and eventually merged into the
* preceding undo level instead of creating a new one.
*
* @return {Object} Action object.
*/
Expand Down
Loading