I had started building a demo app using React. For immutability, I had started using immer but somehow the render() is not getting invoked on updating component state using produce() of immer library.
this.setState(produce( draft => {
draft.categories[categoryIndex].tags[tagIndex].isEnable
= !draft.categories[categoryIndex].tags[tagIndex].isEnable;
}));
Though, the produce is able to update the respective variable but the result is only getting reflected when invoking setState() with different event.
Any Help is Appreciated!.