redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Can I modify/edit a value manually in redux-devtools without using a reducer?

Open xoka4 opened this issue 3 years ago • 2 comments

Is there any way to modify/edit a value in redux-devtools without using a reducer? ( Previously asked here: https://github.com/zalmoxisus/redux-devtools-extension/issues/502 ) Thanks

xoka4 avatar Oct 09 '22 15:10 xoka4

Hi, any updates here? Original issue was opened in 2018, so I guess after 6 years there should be a way to do it without workarounds like "export the state, modify the json outside and reimport it back"?

VenyaBrodetskiy avatar May 04 '24 11:05 VenyaBrodetskiy

Sorry, the only way to ever update state in Redux is via dispatching an action, which ultimately is handled by the "real" store.

The DevTools enhancer wraps around that actual store instance, and then keeps track of dispatched actions to construct the "current" state at each point in time.

Manually editing the state isn't architecturally feasible.

markerikson avatar May 04 '24 16:05 markerikson