-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on ViewModel Class type in Binding Data. #449
Remove dependency on ViewModel Class type in Binding Data. #449
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
ade6456
to
bcd3d94
Compare
@TysonMN I'm ready for this to be merged in if you think it's an ok change. There are a lot of smaller changes that can be added as a result of this one, such as splitting the I see two possible paths for the static view model approach. Either I could make a The second option is to double down on the |
This seems to be related to #418 |
I believe this is a pure refactor that does not change the existing external interface of the library at all. Everything is purely additive. |
This comment was marked as outdated.
This comment was marked as outdated.
Yep, it is related. I would love for |
This comment was marked as resolved.
This comment was marked as resolved.
a86b24c
to
cc8d4a0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the inline comments requests one change be split off into its own PR.
cc8d4a0
to
43bfbb3
Compare
43bfbb3
to
a6239c1
Compare
@TysonMN Every time I format this thing with F# formatter it always touches a ton more files than I intended. Does it work better for you? I'm wondering if it has something to do with Fantomas versioning or if somehow it's not picking up the |
I don't use a formatter, but I am open to it. Want to create a PR where you format every F# file in the repository? |
@TysonMN @the-not-mad-psychologist said he could do that. I told him to wait a bit on that, as we're going to have conflicts if we do it while a bunch of PR's are still open. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left two comments
a6239c1
to
f3b8a2d
Compare
@TysonMN There are two commits here, if you want we can move the second commit to the next PR and then the end of this PR has them all |
8b1dd1a
to
34b7970
Compare
34b7970
to
74f2194
Compare
74f2194
to
7ec115a
Compare
7ec115a
to
9de7dfa
Compare
Allow Statically-typed View Models pt 1
It's not as big as it looks: a major change was to move most of the contents of Bindings.fs into a separate file without modification (first commit). Perhaps that could be a different Pull Request.
The big advantage to this refactor is that it fully decouples all of the binding logic from the actual type of the
ViewModel
, which is going to be important if we want those to be statically typed later on (See #447 for a very rough proof-of-concept).