reduxjs / redux-devtools

DevTools for Redux with hot reloading, action replay, and customizable UI
http://youtube.com/watch?v=xsSnOQynTHs
MIT License
13.99k stars 1.16k forks source link

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

Open xoka4 opened 1 year ago

xoka4 commented 1 year ago

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

VenyaBrodetskiy commented 4 months ago

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"?

markerikson commented 4 months ago

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.