Unverified Commit bccc4446 authored by Manoj Pandian Sakthivel's avatar Manoj Pandian Sakthivel Committed by GitHub
Browse files

Use browser history push rather than replace when switching between species in...

Use browser history push rather than replace when switching between species in genome browser (#463)
parent a044dbd4
......@@ -16,7 +16,7 @@
import { useEffect, useRef, useCallback } from 'react';
import { useLocation, useParams } from 'react-router-dom';
import { replace } from 'connected-react-router';
import { push, replace } from 'connected-react-router';
import { useSelector, useDispatch } from 'react-redux';
import isEqual from 'lodash/isEqual';
......@@ -155,7 +155,7 @@ const useBrowserRouting = () => {
location: chrLocation ? getChrLocationStr(chrLocation) : null
};
dispatch(replace(urlFor.browser(params)));
dispatch(push(urlFor.browser(params)));
},
[genomeId]
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment