Skip to content

Conversation

@enima-dema
Copy link
Collaborator

@enima-dema enima-dema commented Nov 8, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?
The ngxs data entity collections repository relies heavily on the setState method to update its data. It will cause a problem when the user wants to only update part of the record, and not the entire entity collection. Therefore, the goal of this PR is double:

  • First is to change the way the data is updated in the state, using patchState instead of setState in the setEntityState method
  • Second is to make the patchState available to the developer
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

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