Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const initialUrlSupport = ({ navigate, state: { location, path, viewMode, storyId } }: Module) => {
const addition: Additions = {};
const query = queryFromLocation(location);
let selectedPanel;
const {
full,
panel,
nav,
addons,
panelRight,
stories,
addonPanel,
selectedKind,
selectedStory,
path: queryPath,
...customQueryParams
} = query;