Skip to content

Use immutable list

Mael Gaonach requested to merge immutable-reverse into main

Native js sort and reverse are mutating the source array, which can create bugs since react does not expect things to change without a setState.

Some reverse in the MX viewer were creating bugs where state was lost on re-render (closes #352 (closed))

Added immutable lib which provides immutable equivalent to native lists and used where I found potentially problematic sort and reverse.

Merge request reports

Loading