r/NGXS•
RocketPigWithWig

patchState vs. patch state operator

Is there any functional difference between using a simple patch state operator (ctx.setState(patch({ county }))) and the patchState call(ctx.patchState({county})) in NGXS? I am refactoring some code to use state operators and am wondering if there is any functional difference I need to be aware of.

Posted Jun 4, 2019, 3:06 PM UTC

54
Loading comments…