Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServerMode for different calls #60

Open
Mr-Chilly opened this issue Oct 29, 2018 · 0 comments
Open

ServerMode for different calls #60

Mr-Chilly opened this issue Oct 29, 2018 · 0 comments

Comments

@Mr-Chilly
Copy link

Mr-Chilly commented Oct 29, 2018

Currently react-jobs (which is awesome btw - thank you very much!) can either work on the server or the client. Sometimes I find myself needing both! Would it possible to implement both at once? I could see usage as such:

const withJob({
    work: {
      server: () => 'do a jobbie',
      client: () => 'do a client jobbie'
    },
)}

or

const withJob({
    workServer: () => 'do a jobbie',
    workClient: () => 'do a client jobbie',
   
)}

shouldWorkAgain and jobstatus could then work in a similar way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant