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