cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
195 stars 32 forks source link

Feature/mutable state in data store #60

Closed cs-util closed 3 years ago

cs-util commented 3 years ago

Added some additional extensions and a new Redux data store example to allow using mutable data in a data store but still keeping the advantages of enforcing mutations via reducers.

The main challenge with mutable data is to propagate changes upwards through the model and mark all parent objects as changed as well. This example shows how this can be done following the typical Reducer patterns also used very similarly with immutable data models.


This change is Reviewable

codeclimate[bot] commented 3 years ago

Code Climate has analyzed commit d67099cd and detected 0 issues on this pull request.

View more on Code Climate.