Effect CommunityEC
Effect Community2y ago
46 replies
jessekelly

Interrupt call to Rx fn

Is there currently any support(or plans to add support) for interruptibility with effect-rx? Something like:

const useCreateUser = Rx.fn((userData) => /* createUserEffect */)
const [result, createUser, /* cancelRequest()? */] = useCreateUser();

// ...

<button onClick={() => cancelRequest()}>Cancel</button>
Was this page helpful?