react-jobs icon indicating copy to clipboard operation
react-jobs copied to clipboard

Access to redux store in withJobs` work

Open oyeanuj opened this issue 7 years ago • 3 comments

Hi @ctrlplusb! Firstly, thanks as always for putting out these super useful libraries.

For my usecase, I am using it with Redux and a common usecase for that is to to check if the data in question is already in the store or not. To do that, one needs access to the store, which currently is not passed on by withJob to work.

For my own work, I just manually added that to the context, and passed it through but what are your thoughts on a more standard solution for such cases? I know you've previously talked about an abstraction like redux-jobs but I imagine that too would need this piece of information.

Thoughts?

oyeanuj avatar Nov 29 '17 06:11 oyeanuj

Hey @oyeanuj

I would have imagined a wrapper component of sorts. I'll have to spike out an example on codesandbox.io. But it would be great to be able to leave react-jobs as is and simply compose over it.

ctrlplusb avatar Aug 10 '18 12:08 ctrlplusb

Any example yet?

moiz-frost avatar Aug 14 '18 12:08 moiz-frost

@ctrlplusb

moiz-frost avatar Aug 14 '18 12:08 moiz-frost