oskari-frontend icon indicating copy to clipboard operation
oskari-frontend copied to clipboard

Add immutable.js

Open jheijari opened this issue 5 years ago • 1 comments

Using immutable.js makes sure the data structures used by React components won't be mutated elsewhere in the software.

jheijari avatar Mar 13 '19 07:03 jheijari

Immutability can be best harnessed if the services providing the data to the React views use immutable data structures. I support implementing all future services in this way!

For the immutability library/tool I suggest Immer: https://github.com/mweststrate/immer

data-ux avatar Mar 13 '19 11:03 data-ux

We should still work towards this, but the PR is so old I'm closing it for now.

ZakarFin avatar Apr 03 '24 14:04 ZakarFin