馃殌[FEATURE]: Operator to remove an object key/property #1914
Unanswered
enekonieto
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Relevant Package
@ngxs/store
Description
New operator to remove a key/property from an object in state model.
Describe the problem you are trying to solve
We use entity tables in state models to get data normalized, as suggested by docs.
We have no problem inserting and updating entities from tables with patch and append operators, but we miss and operator to delete keys from EntityTableData.byId so we can remove objects from table.
Describe the solution you'd like
We would like an operator able to delete keys from an object, so we can use like this:
Describe alternatives you've considered
Destructuring object to extract key we want to remove and patching state with new
byIdobject:All reactions