
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
redux-form-connect-standalone
Advanced tools
A High Order Component to allow you to use redux-form without the need of a single root Provider
This is High Order Component allows you to use reduxForm when you aren't able to have a single root Provider in your application. Eg: You are migrating a legacy application to React and has a few react components inside this application.
Before using this, you need to configure your redux store and export it, just like below.
import { createStore } from 'redux';
import rootReducer 'path/to/rootReducer';
const store = createStore(rootReducer)
export default store;
Then, you can create a file named connect, import the store into it and generate you connect function:
import createReduxForm from 'redux-form-connect-standalone';
import store from 'path/to/youStore'
export const reduxForm = createReduxForm(store);
Now, you can use this function the same way you would use reduxForm function:
import { reduxForm } from 'path/to/yourReduxForm';
import TodoForm from './TodoForm';
export default reduxForm({ ...reduxFormConfig })(TodoForm)
MIT
FAQs
A High Order Component to allow you to use redux-form without the need of a single root Provider
The npm package redux-form-connect-standalone receives a total of 6 weekly downloads. As such, redux-form-connect-standalone popularity was classified as not popular.
We found that redux-form-connect-standalone 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.