File size: 391 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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;
|