This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inside of my actions.js, my actions look like this... | |
// because I'm creating a function that returns a function, I have access to dispatch | |
// through the Thunk middleware. I technically have access to state too, as a second argument | |
// Because I'm using dispatch here, this specific function can be bound to the redux store | |
// You could maybe think about it like a singleton? | |
export const createWellsTask = ({ serverId }) => async (dispatch) => { | |
const payload = { | |
properties: { | |
operation: 'list_wells', |