Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
drawnwren
9y ago
0 comments
Save
Share
There are no global state mutations in pkgs until you need a custom package, and then you're overriding the global state with your own custom state.
0 comments
3 comments · 1 top-level
top
newest
oldest
vertex-four
9y ago
· 2 in thread
That does not modify global state - it creates a new state from the old one + your modifications.
dom0
9y ago
In other words, it modifies global state.
vertex-four
9y 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.
j
/
k
navigate · click thread line to collapse