alloc/saus

Deep freeze any objects loaded from state modules (in dev mode)

Closed this issue · 1 comments

Due to HMR, mutating objects provided by state modules is a no-no, since those objects are not reset when HMR causes a mutation to repeat more than was expected.

Fixed in next branch

Instead of deep freezing, we do a deep copy on access (see 190f795).