{"repo":"timdeschryver/ngrx-immer","free":true,"listed":false,"github":"https://github.com/timdeschryver/ngrx-immer","clone":"git clone https://github.com/timdeschryver/ngrx-immer.git","description":"Immer wrappers around NgRx methods createReducer, on, and ComponentStore","language":"TypeScript","stars":124,"topics":["angular","ngrx","immer","state"],"license":"MIT","category":"ui-components","readme_excerpt":"ngrx-immer Immer wrappers around NgRx methods to simplify mutating state ngrx-immer Installation Functions createImmerReducer (@ngrx/store) immerOn (@ngrx/store) ImmerComponentStore (@ngrx/component-store) immerPatchState (@ngrx/signals) immerOn (@ngrx/signals) immerReducer FAQ Resources Installation Do not forget to install immer Functions createImmerReducer (@ngrx/store) Creates an NgRx reducer, but allows you to mutate state without having to use to spread operator. - Use it when you want to go Immer all the way - Caveat, you have to return the state with each on method immerOn (@ngrx/store) Creates an NgRx reducer, but allows you to mutate state without having to use to spread operator. - Use it when you want to go sprinkle a little bit of Immer for more complex cases ImmerComponentStore (@ngrx/component-store) Wraps Immer around the Component Store updater and setState methods. immerPatchState (@ngrx/signals) Provides an Immer-version of the patchState function from the @ngrx/signals package. In addition to partial state objects and updaters that update the state immutably, it accepts updater functions that update the state in a mutable manner. Similar to patchState , the immerPatchState function can be used to update the state of both SignalStore and SignalState. Please note, that the updater function can only mutate a change without returning it or return an immutable state without mutable change. This one is going to throw a runtime error: immerOn (@ngrx/signals) Prov","default_branch":null,"files":null,"tree":[],"storefront":"/r/timdeschryver","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/timdeschryver/ngrx-immer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}