You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #101044, The HeaderMenuPortal was moved to be outside of routes, making it so useParams always returns an empty object.
We should be able use useRouteMatch instead, which doesn't depend on being a child of a Route.
At a minimum, use this in the alert flyout components. We could probably use it everywhere else, and maybe make a useServiceName that all the components that currently use useParams can use.
The text was updated successfully, but these errors were encountered:
sorenlouv
changed the title
[APM] useParams not working in alert flyout components.
[APM] useParams not working in alert flyout components (environment is always "All")
Jun 17, 2021
dgieselaar
changed the title
[APM] useParams not working in alert flyout components (environment is always "All")
[APM] useParams not working in alert flyout components (service is always "All")
Jun 29, 2021
dgieselaar
added a commit
to dgieselaar/kibana
that referenced
this issue
Jul 1, 2021
In #101044, The
HeaderMenuPortal
was moved to be outside of routes, making it souseParams
always returns an empty object.We should be able use
useRouteMatch
instead, which doesn't depend on being a child of aRoute
.At a minimum, use this in the alert flyout components. We could probably use it everywhere else, and maybe make a
useServiceName
that all the components that currently useuseParams
can use.The text was updated successfully, but these errors were encountered: