Skip to content

Conversation

@MSNev
Copy link
Collaborator

@MSNev MSNev commented Mar 17, 2023

No description provided.


function _setValue<C, V>(target: C, name: string, value: V) {
return _setDynamicProperty(theState, target, name, value);
return _setDynamicProperty(theState, target, name, value)[name];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the _setDynamicProperty() to return then target rather than the target[name] as that was indirectly causing the objects to be referenced and converted to be dynamic (if they where not already).

This caused an issue when "setting" the default values (which didn't use the returned value) and also indirectly caused everything to become dynamic during initialization whether referenced or not.

@MSNev MSNev force-pushed the MSNev/ReleaseFixes branch from 0f9be85 to d4b0c36 Compare March 17, 2023 21:51
@MSNev MSNev changed the title Add support to tag objects to force or block dynamic conversion [Main] Add support to tag objects to force or block dynamic conversion Mar 17, 2023
@MSNev MSNev merged commit 034e895 into main Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants