-
Notifications
You must be signed in to change notification settings - Fork 35
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
Validate utility network #315
base: v.next
Are you sure you want to change the base?
Conversation
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.
LGTM! This is an excellent sample @shubham7109! Well done!
All suggestions are purely typo or ease of reading type suggestions.
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Show resolved
Hide resolved
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Outdated
Show resolved
Hide resolved
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Outdated
Show resolved
Hide resolved
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Outdated
Show resolved
Hide resolved
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Outdated
Show resolved
Hide resolved
@TADraeseke Thank you for the kind words and the helpful PR feedback. I added the changes, and is now ready for your review! |
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.
Brilliant sample!
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.
@shubham7109
Good work,
some suggestions. Let me know if you'd like to discuss further
.../sample/validateutilitynetworktopology/components/ValidateUtilityNetworkTopologyViewModel.kt
Show resolved
Hide resolved
LaunchedEffect(Unit) { | ||
if (!isViewmodelInitialized) { | ||
mapViewModel.initialize() | ||
isViewmodelInitialized = true | ||
} | ||
} |
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.
this could be handled in the viewmodel's init
block
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.
Leaving this as is, if that's alright!
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.
isViewmodelInitialized
is currently rememberSaveable
which is needed, if not initialize()
will be triggered on every rotation causing an object already owned error.
...ismaps/sample/validateutilitynetworktopology/screens/ValidateUtilityNetworkTopologyScreen.kt
Outdated
Show resolved
Hide resolved
@eri9000 Thanks for the feedback. Ready for your review. |
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.
LGTM 👍🏼
Description
PR to add a new Kotlin sample "Validate utility network" in
Utility Networks
category.Links and Data
Sample issue: #3846
What To Review
README.md
andREADME.metadata.json
filesHow to Test