Skip to content

ServerMode for different calls #60

@Mr-Chilly

Description

@Mr-Chilly

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions