mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 19:56:41 +00:00
26 lines
301 B
JavaScript
26 lines
301 B
JavaScript
/*
|
|
*
|
|
* List actions
|
|
*
|
|
*/
|
|
|
|
import {
|
|
LOAD_RECORDS,
|
|
LOADED_RECORDS
|
|
} from './constants';
|
|
|
|
export function loadRecords(model) {
|
|
return {
|
|
type: LOAD_RECORDS,
|
|
model
|
|
};
|
|
}
|
|
|
|
export function loadedRecord(records, models) {
|
|
return {
|
|
type: LOADED_RECORDS,
|
|
records,
|
|
models
|
|
};
|
|
}
|