-
Notifications
You must be signed in to change notification settings - Fork 509
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
reimplemented MonitorATMServicesViewImpl in react functions with hook #2570
base: main
Are you sure you want to change the base?
reimplemented MonitorATMServicesViewImpl in react functions with hook #2570
Conversation
Signed-off-by: Rahul Vishwakarma <rahulvs2809@gmail.com>
Signed-off-by: Rahul Vishwakarma <rahulvs2809@gmail.com>
Signed-off-by: Rahul Vishwakarma <rahulvs2809@gmail.com>
@yurishkuro would you please review it!!! |
@@ -467,7 +425,7 @@ export function mapStateToProps(state: ReduxState): TReduxProps { | |||
}; | |||
} | |||
|
|||
export function mapDispatchToProps(dispatch: Dispatch<ReduxState>): TDispatchProps { | |||
export function mapDispatchToProps(dispatch: Dispatch<ReduxState>) { |
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.
With functional components, you can use hooks like useDispatch
instead of mapDispatchToProps
. Similarly, useSelector
for mapStateToProps
. That would be a better approach, imo
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.
A lot of tests are removed. They gotta be replaced?
There are some regressions.
|
store.set('lastAtmSearchSpanKind', selectedSpanKind); | ||
store.set('lastAtmSearchTimeframe', selectedTimeFrame); | ||
store.set('lastAtmSearchService', this.getSelectedService()); | ||
store.set('lastAtmSearchService', getSelectedService()); |
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 is setting the last selected service to store
on selecting a new service. The expected behavior is to set the currently selected service to store
Which problem is this PR solving?
Issue #2013
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test