redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

add createAsyncThunk.forTypes

Open phryneas opened this issue 3 years ago • 3 comments

This might need some yak shaving with the name and I also want to maybe take another look at how .forTypes is called, because like this it gets more restrictive with every time it's called, but this should serve as a good prototype.

Please test and give comments.

phryneas avatar Aug 16 '22 13:08 phryneas

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 daf9920ad9033565426c02fe1e99892bb80acf99:

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

codesandbox-ci[bot] avatar Aug 16 '22 14:08 codesandbox-ci[bot]

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

Name Link
Latest commit b3e12cee399cbf96d8c817d3da6e24f7112b29d4
Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/62fba253d7cdd8000a63e835
Deploy Preview https://deploy-preview-2604--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 settings.

netlify[bot] avatar Aug 16 '22 14:08 netlify[bot]

I'd call it .withTypes, myself. (Some parallel with thunk.withExtraArgument, for example.)

markerikson avatar Aug 16 '22 14:08 markerikson

I think the types are now where I want them, wanna take another look? :)

phryneas avatar Aug 19 '22 04:08 phryneas