ExtendRealityLtd / Malimbe

[Obsolete - No longer maintained] A collection of tools to simplify writing public API components for the Unity software.
MIT License
51 stars 11 forks source link

feat(MemberChange): help preventing infinite loops - resolves #36 #37

Closed bddckr closed 5 years ago

bddckr commented 5 years ago

When a property is changed the MemberChange feature of Malimbe will call annotated methods before or after the change. Changing the property in those annotated change handler methods will in turn call the setter, thus recursively call the handler methods again. To prevent this issue in most cases this change ensures that property setter calls in the change handler methods instead store the value into the backing field directly. While this change doesn't help when the change handler methods call other methods that ultimately call the property setter this is still a good help for the use case of validating a property.

ExtendReality-Bot commented 5 years ago

:tada: This PR is included in version 9.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: