LearnNewsExamplesServices
Frontmatter
id2608
titledata.Store: updateRecords()
stateClosed
labels
enhancementstale
assignees[]
createdAtJul 15, 2021, 9:08 PM
updatedAtSep 16, 2024, 4:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/2608
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 16, 2024, 4:36 AM

data.Store: updateRecords()

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Jul 15, 2021, 9:08 PM

We could add a bulk update method to change multiple fields on multiple records in parallel.

E.g.:

myStore.updateRecords({
    ids: [1, 2, 3],
    endTime: '23:00',
    startTime: '21:00'
});

For non remote stores, this should probably trigger a recordChange event for each affected record.

We can add a new bulk change event as well.

For remote stores, we can create a single ajax request to the BE, containing all changes.

Open for ideas!

tobiu added the enhancement label on Jul 15, 2021, 9:08 PM