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

feat(actions): add MULTIPLE_DOCUMENTS_ADDED event to group doc updates #319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mike-lvov
Copy link

Description

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples if applicable
  • Added tests to ensure new feature(s) work properly

Relevant Issues

Closes prescottprue/react-redux-firebase#914

@prescottprue
Copy link
Owner

Open to looking to get this merged if we get the test working again

@ivanchaukn
Copy link

Would love to have this fixed! It's affecting my project and assuming many other projects too

action.payload.forEach(changeAction => {
set(draft, [key, 'data', changeAction.meta.doc], changeAction.payload.data);
})
return draft;
Copy link
Owner

Choose a reason for hiding this comment

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

Not postive, but I think we should be returning a copy here

Copy link
Author

@mike-lvov mike-lvov May 23, 2021

Choose a reason for hiding this comment

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

@prescottprue I was just following the way it's done in other cases. For ex. a few lines above, you modify draft directly. Correct me, if I'm wrong though

image

@prescottprue prescottprue changed the title Fixes performance issues, caused by one-by-one store updates feat(actions): add MULTIPLE_DOCUMENTS_ADDED event to group doc updates Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants