Y
Hacker News
new
|
ask
|
show
|
jobs
by
vertex-four
3329 days ago
That does not modify global state - it creates a new state from the old one + your modifications.
1 comments
dom0
3329 days ago
In other words, it modifies global state.
link
vertex-four
3329 days ago
I expect that your issue is more with the fact that there is a mega state object that contains almost everything - not that it is somehow global, which it isn't. You can't access it unless it is passed to you.
link