I have server driven data being displayed in tables on multiple pages.
I currently have the following table actions
pageChange
pageSizeChange
sort
load
loaded
I have filters on some pages which need to trigger the load.
I have multiple entities which use this functionality, which will share most the above logic, but will need separate load functionality defining.
My thought was to have actions which take the table ID as a parameter, and then have a createTableReducer function which would also take this ID and would mount table nodes within entities, similarly to createModelReducer in react-redux-form
How could I trigger the entity specific load actions from my generic actions without using something like redux saga?
I was wondering about creating a higher order component and passing it the load function but I don't think this would solve my issue. I could also call both the change action and the load action from the table component itself, but this doesn't' seem like a nice solution.