michaelkrone / ngrx-normalizr

Managing normalized state in ngrx applications - transparently
https://michaelkrone.github.io/ngrx-normalizr/
MIT License
50 stars 17 forks source link

RemoveData while using ngrx-store-freeze #27

Open ghry5 opened 6 years ago

ghry5 commented 6 years ago

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 commented 6 years ago

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

luketomaszewski commented 6 years ago

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

Chuvisco88 commented 5 years ago

The same bug applies, when calling AddChildData

progmancod commented 5 years ago

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