'use strict' const {receivedHousehold} = require('./actions') module.exports = { // urls that should be called for the remote actions urls: { fetch: 'https://layla.amazon.de/api/household', }, // called after an remote http call to the household API has been successfully executed postHooks: { // called after the household items have been fetched fetch: (store, data) => { return new Promise((resolve, reject) => { store.dispatch(receivedHousehold(data)) resolve(data) }) } } }