I have a function A that is called on clicking a number. The function A sets the state of a variable and calls another function B as a callback. B now has to make a redux ca