goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 322 forks source link

Per-request context for source operations? #664

Open rulatir opened 8 years ago

rulatir commented 8 years ago

I need to be able to pass a context object to a source's remote operation, and then have that same context object passed to the success/error action that will follow.

It must be possible for this object to be a different object each time, so binding it with a closure when creating the source does not satisfy this requirement.

Is there already a way to do this?