
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
focal-redux
Advanced tools
Focal-Redux
allows you to use all the power of Focal in a Redux application.
It helps you to implement Focal's Atom
in the Redux application by simplifying the code refactoring when you want to switch from Redux to Focal.
Futhermore, you can use all the advantages of both state-management in your application.
For example, Focal can help you with large collections of data or form management, and so on.
$ yarn add focal-redux
or
$ npm install --save focal-redux
You should wrap your Reducer
or ReducersMapObject
with subscribeAtom
function.
This function will automaticaly add action @@UPDATE_STORE@@
which will be dispatched when your atom updates.
import {subscribeStore} from 'focal-redux'
// Reducer:
subscribeAtom(reducer)
// ReducersMapObject
combineReducer(subscribeAtom({ //reducers }))
You should subscribe your atom to store using subscribeStore
function:
subscribeStore(atom, store)
npm start
: Runs npm run build
in watch modenpm run test
: Run test suitenpm run test:watch
: Run test suite in interactive watch modenpm run build
: Generage bundles and typingsnpm run lint
: Lints codeIf you think that we are missing any key features, please open a GitHub issue, or even better, a pull request. Any feedback you have about using focal-redux
would be greatly appreciated.
FAQs
Unknown package
The npm package focal-redux receives a total of 0 weekly downloads. As such, focal-redux popularity was classified as not popular.
We found that focal-redux 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.