Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
LF-4384: End to end animal details #3534
LF-4384: End to end animal details #3534
Changes from 26 commits
d40e520
aab542c
5c390de
45ba590
2632814
b7b76c5
4248a6b
2f1ac45
d8e013a
ace818d
4ac69a8
6054d79
3f72c80
b3edb84
f29364a
a5452e1
ad65572
8c43213
b9d72e3
196e475
035f8e7
e599d65
9241b04
4d9fcc6
a46d530
9021d49
b295005
d7ed709
ebde1a2
2325f80
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
At first I was worried that this would clear the edited values when unsuccessful (api is down). But instead It kept them? Do you think this is expected?
Screen.Recording.2024-11-26.at.1.07.32.PM.mov
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.
reset()
will reset the form to the default values. However,reset(getValues())
updates the default values to the current form values before resetting, so this behaviour is expected. You can find a brief explanation in the RULES section on this page.Thank you Duncan for thoroughly testing this, I don't think
reset
,setIsSaving
andsetIsEditing
shouldn't be called unless the API call is successful. Let me see if I can fix this!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.
Interesting use of reset! and sounds good!