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

RemoveData while using ngrx-store-freeze #27

Open
ghry5 opened this issue Dec 4, 2017 · 4 comments
Open

RemoveData while using ngrx-store-freeze #27

ghry5 opened this issue Dec 4, 2017 · 4 comments
Labels

Comments

@ghry5
Copy link

ghry5 commented Dec 4, 2017

Hi, we are using ngrx-store-freeze to keep our state from mutating accidentally. While active the following line in the REMOVE_DATA reducer throws an error: delete entities_3[key][id];. I think what happens is __assign({}, state.entities) assigns all the entity keys and the entity dictionaries are still frozen. One would probably have to use an approach similar to lodashs .omit(entities[key], [id]).

@michaelkrone
Copy link
Owner

I see, thanks for this one. Will have a look at it.

@luketomaszewski
Copy link

Hi, we also have the same problem, is there any plans to fix this bug in the near future?

@Chuvisco88
Copy link

The same bug applies, when calling AddChildData

@progmancod
Copy link

Hi, same problem here. Is this project still alive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants