Skip to content

Created listenerApi.cancel() #3775

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

Merged
merged 3 commits into from
Oct 14, 2023

Conversation

julian-ford
Copy link
Contributor

#3683

Created listenerApi.cancel(), a counterpart to cancelActiveListeners().

throwIfCanceled() not included.

@codesandbox
Copy link

codesandbox bot commented Oct 4, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify
Copy link

netlify bot commented Oct 4, 2023

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 47e6200
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/651de212d6783d0008a1cfe2
😎 Deploy Preview https://deploy-preview-3775--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 4, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 47e6200:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration

I somehow didn't include this with my previous commit, oops.
@markerikson
Copy link
Collaborator

I'll try to look at this over the weekend!

@markerikson
Copy link
Collaborator

Looks nice, thank you!

(Only other suggestion I can immediately think of would be having the test do the cancelation from within a forked child task, to help show that it bails out, but this seems to show that the cancelation did indeed happen.)

@markerikson markerikson merged commit 777734c into reduxjs:master Oct 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants