Y
Hacker News
new
|
ask
|
show
|
jobs
by
ben_jones
3372 days ago
No clue, haven't used vuex yet :/ .
1 comments
beaconstudios
3372 days ago
ah ok, no worries - I think it's similar to Redux largely, which unfortunately includes being severely incompatible with nested state values.
link
girvo
3372 days ago
In redux I use functional lenses to create composoable getter/setter functions to handle deeply nested data safely. I do that even without redux, but it is very useful there. Take a look at the lens functions in Ramda, or safety-lens
link
beaconstudios
3365 days ago
I'd never thought to use lenses for this. Thanks for the advice, that actually really helps!
link