pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
12.3k stars 1.43k forks source link

Restrict Shared.elements to IdentifiedArray only. #3187

Closed mbrandonw closed 3 months ago

mbrandonw commented 3 months ago

Fixes #3183.

Currently the $shared.elements collection is based off of positional indices, and that is unfortunately not correct. It should be ID-based, and so this fixes that.

Technically this is a breaking change, but really it's a bug fix and we think the number of people using $shared.elements with non-IdentifiedArrays should be small.