Thursday 1 June 2017

redux state automatically change when variable change

my code is

const state = getState(); var drag_trips = state.sale.drag_trips; drag_trips[0].deliveries.push(delivery);

when I change variable drag_trips it automatically changes state without dispatching.

i want to store and update state and at the end i will store it in another state



via user3045586

No comments:

Post a Comment