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

Don't mutate array #3403

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Don't mutate array #3403

merged 1 commit into from
Apr 4, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 4, 2024

Drive-by fix. Code isn't being used but still.


export const labelerInfoQueryKey = (did: string) => ['labeler-info', did]
export const labelersInfoQueryKey = (dids: string[]) => [
'labelers-info',
dids.sort(),
dids.slice().sort(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the actual change

@gaearon gaearon merged commit 3e88fdf into main Apr 4, 2024
6 checks passed
@gaearon gaearon deleted the dont-mutate-dids branch April 4, 2024 17:14
Copy link

github-actions bot commented Apr 4, 2024

Old size New size Diff
6.34 MB 6.34 MB 0 B (0.00%)

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