react-code-dataset / wp-calypso /client /state /selectors /get-current-query-arguments.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { get } from 'lodash';
import 'calypso/state/route/init';
/**
* Gets the last query parameters set by a ROUTE_SET action
* @param {Object} state - global redux state
* @returns {Object.<string, string|string[]>|null} current state value
*/
export const getCurrentQueryArguments = ( state ) => get( state, 'route.query.current', null );
export default getCurrentQueryArguments;