-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: create-slice-creators
Are you sure you want to change the base?
Entity methods creator #4223
Conversation
This reverts commit 31c4794.
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
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:
|
ed623ac
to
11b873c
Compare
|
||
export function capitalize<S extends string>(str: S) { | ||
return str && (str.replace(str[0], str[0].toUpperCase()) as Capitalize<S>) | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
No description provided.