Csla 9.1.0 - Properties are not set during OnSetState #4831
Unanswered
ajohnstone-ks
asked this question in
Questions
Replies: 1 comment 6 replies
-
|
I'm "glad" it isn't new with v9 as that would have been puzzling. I have no doubt it changed in v6 - a lot changed then. I am 99.99% sure we added a way to know that serialization is complete. That might have been in v10, or v9, I'm not sure. @StefanOssendorf might remember? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We've had a few regression bugs pop up in our first release using Csla 9; the issue seems to be that during the
OnSetStateinvocation, the Csla managed properties have not yet been loaded. We had been usingOnSetStateto do some other sets on the client based on the values in the BO, but these are not working any longer.Here is a repo of the problem; as you can see in the console output MyString is empty during
OnSetStatebut it does eventually get set (just too late for our purposes). Is this intentional, or a bug? If its intentional, where can we put code that needs to run after deserializable (and only on the logical client)?EDIT: Hmm it seems like this hasn't worked since we moved to Csla 6; not sure how it escaped notice until now.
https://github.com/ajohnstone-ks/CslaOnSetStateIssue
Beta Was this translation helpful? Give feedback.
All reactions