Skip to content
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

Create code gen module imports absolute paths #3887

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

FabianFrank
Copy link
Contributor

Use absolute paths for imports and module declarations to reflect how this would be used in an actual project that depends on redux toolkit, as opposed to how it is used inside the rtk monorepo.

Use absolute paths for imports and module declarations to reflect how this would be used in an actual project that depends on redux toolkit, as opposed to how it is used inside the rtk monorepo.
Copy link

codesandbox bot commented Nov 16, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@FabianFrank
Copy link
Contributor Author

Just struggled with updating my own custom code gen module for a few minutes to catch up with the changes from #3728 so I thought it might make sense to update the docs to reflect how the code would actually look like in a project that consumes rtk as a dependency.

Copy link

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 635eeba:

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

Copy link

netlify bot commented Nov 16, 2023

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

Name Link
🔨 Latest commit 635eeba
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/655687ccd72b930007f7bee7
😎 Deploy Preview https://deploy-preview-3887--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.

@markerikson markerikson merged commit debd420 into reduxjs:master Aug 30, 2024
5 checks passed
@markerikson
Copy link
Collaborator

Should be live in https://github.com/reduxjs/redux-toolkit/releases/tag/%40rtk-query%2Fcodegen-openapi%402.0.0-alpha.0 ! Please try it out and let us know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants