ngrx-normalizr icon indicating copy to clipboard operation
ngrx-normalizr copied to clipboard

RemoveData while using ngrx-store-freeze

Open ghry5 opened this issue 6 years ago • 4 comments

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]).

ghry5 avatar Dec 04 '17 21:12 ghry5

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

michaelkrone avatar Dec 04 '17 22:12 michaelkrone

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

luketomaszewski avatar Feb 23 '18 10:02 luketomaszewski

The same bug applies, when calling AddChildData

Chuvisco88 avatar Mar 14 '19 18:03 Chuvisco88

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

progmancod avatar Apr 11 '19 11:04 progmancod