I want to update the store with an action fired from a function in a helper class.
How can I bind and fire that action if my class is not a component?
A solution I have seen is to use a renderless component which returns null
in its render()
function. That way you can bind your actions to it. But this seems like a hackey solution and it would cause an unpleasant refactor of my helper class.