A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mrichar1.github.io/jsonapi-vuex/module-jsonapi-vuex.jsonapiModule.mutations.html below:

mutations

Namespace

mutations jsonapi-vuex.jsonapiModule.mutations Methods # static addRecords(state, records)

Add record(s) to the store, according to mergeRecords config option

Parameters: Name Type Description state object

The Vuex state object

records object

The record(s) to be added

View Source mutations.js, line 40

# static clearRecords(state, records)

Delete all records from the store for a given type

Parameters: Name Type Description state object

The Vuex state object

records object

A record with type set.

View Source mutations.js, line 67

# static deleteRecord(state, record)

Delete a record from the store.

Parameters: Name Type Description state object

The Vuex state object

record string | object

The record to be deleted

View Source mutations.js, line 19

# static mergeRecords(state, records)

Merge (or add) records to the store

Parameters: Name Type Description state object

The Vuex state object

records object

The record(s) to be merged

View Source mutations.js, line 58

# static replaceRecords(state, records)

Replace (or add) record(s) to the store

Parameters: Name Type Description state object

The Vuex state object

records object

The record(s) to be replaced

View Source mutations.js, line 49


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4