Skip to content

Commit

Permalink
[Utpime] Remove unnecessary usememo in url params hooks (#114252)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Oct 11, 2021
1 parent e32dd1c commit a389520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/uptime/public/hooks/use_url_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { useCallback, useEffect, useMemo } from 'react';
import { useCallback, useEffect } from 'react';
import { parse, stringify } from 'query-string';
import { useLocation, useHistory } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
Expand All @@ -28,7 +28,7 @@ const getParsedParams = (search: string) => {
export const useGetUrlParams: GetUrlParams = () => {
const { search } = useLocation();

return useMemo(() => getSupportedUrlParams(getParsedParams(search)), [search]);
return getSupportedUrlParams(getParsedParams(search));
};

const getMapFromFilters = (value: any): Map<string, any> | undefined => {
Expand Down

0 comments on commit a389520

Please sign in to comment.