I tried to search for this, but all I got were doing promises etc with hooks which is not exactly the question I\'m trying to ask.
A common pattern for redux-thunk is