You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't get how that is supposed to function. work() gets called and the props are passed to the top most method and, using the recommended syntax, the inner function gets returned as a result.
It seems intuitive to me that the format should simply be
@withJob(props=>Promise.resolve())classFoo{}
Edit: just using the above intuitive syntax actually works as expected
The text was updated successfully, but these errors were encountered:
Throughout the readme the following pattern keeps popping up:
and the docs themselves clearly state
But checking the behavior and the code: https://github.com/ctrlplusb/react-jobs/blob/master/src/withJob.js#L64
I don't get how that is supposed to function.
work()
gets called and the props are passed to the top most method and, using the recommended syntax, the inner function gets returned as a result.It seems intuitive to me that the format should simply be
Edit: just using the above intuitive syntax actually works as expected
The text was updated successfully, but these errors were encountered: