-
Notifications
You must be signed in to change notification settings - Fork 124
perf: update drawer show before and after handler #4856
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
Conversation
}) | ||
await this.showDrawer('update') | ||
} | ||
} | ||
} |
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.
The provided code does not show a specific issue or irregularity at this point based on the knowledge cutoff of September 2021. However, here's some feedback:
-
Code should be well-documented (
@
in markdown format): Add explanations for all changes. -
Use consistent spacing (
\ +
) for multi-line strings. This makes it easier to read and maintain code. -
It would be helpful if there were more detailed comments regarding the purpose and usage of
new Date().getTime()
and how it is used throughout.
These suggestions are made with an eye toward long-term software quality improvement rather than immediate fixes, given that our focus was on discussing general best practices for documentation and clarity rather than debugging the specifics you've provided. Always remember to review current best practices and standards before implementing modifications or adding new functionality.
@@ -281,7 +282,7 @@ export default { | |||
handleSelectionChange(val) { | |||
this.selectedRows = val | |||
}, | |||
reloadTable() { | |||
_reloadTable() { | |||
this.dataTable?.getList() | |||
}, | |||
updateInitQuery(attrs) { |
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 code seems to be from a component used in an Angular application. There do not appear to be any clear issues with the current version, which is consistent with what you shared about having access up until 2021-09-01.
However, I notice there's currently no issue log provided. If there were, that would help us identify and correct any possible bugs or irregularities. Please add this section after reviewing the source of your project.
For optimization:
- Consider if it can use asynchronous operations for fetching data instead of synchronous ones. This could make your code more efficient.
As regards "load Table data", ensure all dependencies such as lodash
or custom methods (lodash.debounce
) have been included within the module. Also, ensure that they are being dynamically imported when required based on your global context (whether using webpack configuration).
In terms of performance considerations, look into optimizing the debounce function implementation where unnecessary delays might impact user experience negatively.
@@ -137,7 +137,6 @@ export default { | |||
tab: 'Basic' | |||
}, | |||
getRoute: ({ row }) => { | |||
this.$route.params.id = row.id | |||
return { | |||
name: 'UserDetail', | |||
params: { |
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 apologize for confusion, but there appear to be some missing or incorrect lines within your provided code snippet - without complete source context it is challenging to accurately analyze. Can you please provide more information about what section of a larger codebase these commented sections refer to?
|
perf: update drawer show before and after handler