
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-url-queries
Advanced tools
This is a helper component that helps working with query params easier.
You need to have react-router setup in your application before using this package.
import React from 'react';
import { render } from 'react-dom';
import { ConnectedRouter } from 'react-router-redux';
import { Provider } from 'react-redux';
import { Route, Switch } from 'react-router-dom';
import createHistory from 'history/createBrowserHistory';
import Home from 'components/Home';
const store = createStore(); // create redux store
const history = createHistory(); // history
render(
<Provider store={store}>
<ConnectedRouter history={history}>
<Switch>
<Route exact path='/home' component={Home} />
</Switch>
</ConnectedRouter>
</Provider>,
document.getElementById('app'),
);
This is a typical setup for react-redux app. If you've already have this setup. You can use this package without problem.
npm install --save react-url-queries
OR
yarn add react-url-queries
allowedParams (Array of string): of string sepcified all the params that can be passed to child component
params (Object): Filtered query params object which contains only allowed params
updateQueries (Function): A function for updating query params to URL after manipulation, disallowed params will be filtered out before update to URL
search (String): A complete search string in the URL pass to children
import URLQueries from 'react-url-queries';
<URLQueries allowedParams={['name', 'price']}>
<FilterComponent />
</URLQueries>
<URLQueries allowedParams={['name', 'price']}>{({params, updateQueries, search}) => {
// read the params object and re-populate to the filter component
// Do something here with params Object
// Update the queries by calling updateQueries(new_params_obj)
}}
</URLQueries>
FAQs
React Helper component that makes working with query params easier
We found that react-url-queries demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.