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

Entity methods creator #4223

Open
wants to merge 29 commits into
base: create-slice-creators
Choose a base branch
from

Conversation

EskiMojo14
Copy link
Collaborator

No description provided.

Copy link

codesandbox bot commented Feb 18, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox-ci bot commented Feb 18, 2024

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

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

@EskiMojo14 EskiMojo14 marked this pull request as ready for review June 13, 2024 08:26
@EskiMojo14 EskiMojo14 force-pushed the entity-methods-creator branch from ed623ac to 11b873c Compare September 3, 2024 09:33
Comment on lines +67 to +70

export function capitalize<S extends string>(str: S) {
return str && (str.replace(str[0], str[0].toUpperCase()) as Capitalize<S>)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we consolidate with this instead of duplicating it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RTKQ tends to have its own utils, because it can only import things from the core RTK export that we actually export.

I don't think there's a clean way to consolidate them without exporting it?

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