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

Fix #1853 - updateMany on sorted entity adapter #1860

Closed
wants to merge 1 commit into from

Conversation

jakeboone02
Copy link
Contributor

@jakeboone02 jakeboone02 commented Dec 22, 2021

Fixes #1853.

@markerikson stated that the preferred outcome would be to combine the sorted and unsorted logic into a single implementation, but I haven't done that yet.

So, feel free to merge this PR as is and I can combine the sorted/unsorted logic later, or let me know if you just want to wait until I do the combining in this PR. In either case I probably won't get to that until after the holidays.

@codesandbox-ci
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 fdc845d:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
redux-toolkit-updateMany-test (1.7.1) (forked) Issue #1853

@netlify
Copy link

netlify bot commented Dec 22, 2021

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

🔨 Explore the source changes: fdc845d

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-starter-kit-docs/deploys/61c27405e307390008381422

😎 Browse the preview: https://deploy-preview-1860--redux-starter-kit-docs.netlify.app

@markerikson
Copy link
Collaborator

Yeah, this is a lower-priority fix given that there are workarounds in userland (ie, combine all your own updates first). No rush - I'd like to take this chance to consolidate this code.

@markerikson
Copy link
Collaborator

Hiya. Sorry I never got back around to dealing with this.

I actually just put up a PR that fixes both #1853 and also #2297:

#2464

Given that, I'm going to close this.

If you do have any interest in helping combine the two entity adapter implementations, I'd definitely appreciate 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.

Using updateMany in adapter with custom sortComparer ignores several updates with same id
2 participants