
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
react-final-form-listeners
Advanced tools
A collection of components to listen to 🏁 React Final Form fields
🏁 React Final Form Listeners is a collection of useful components for listening to fields in a 🏁 React Final Form.
npm install --save react-final-form-listeners react-final-form final-form
or
yarn add react-final-form-listeners react-final-form final-form
import { Form, Field } from 'react-final-form'
import { OnChange } from 'react-final-form-listeners'
const MyForm = () => (
<Form
onSubmit={onSubmit}
render={({ handleSubmit, pristine, invalid }) => (
<form onSubmit={handleSubmit}>
<div>
<label>
<Field name="foo" component="input" type="checkbox" /> Turn foo on?
</label>
<OnChange name="foo">
{(value, previous) => {
// do something
}}
</OnChange>
</div>
...
</form>
)}
/>
)
The following can be imported from react-final-form-listeners.
ExternallyChangedRenders is render prop with a boolean flag when the specified field was last updated externally (changed while not active).
name : StringThe name of the field to listen to.
children: (externallyChanged: boolean) => React.NodeA render prop given the boolean flag.
OnChangeCalls its children callback whenever the specified field changes. It renders nothing.
name : StringThe name of the field to listen to.
children: (value: any, previous: any) => voidA function that will be called whenever the specified field is changed. It is passed the new value and the previous value.
OnFocusCalls its children callback whenever the specified field becomes active. It renders nothing.
name : StringThe name of the field to listen to.
children: () => voidA function that will be called whenever the specified field is changed. It is passed the new value and the previous value.
OnBlurCalls its children callback whenever the specified field is blurred. It renders nothing.
name : StringThe name of the field to listen to.
children: () => voidA function that will be called whenever the specified field is blurred.
FAQs
A collection of components to listen to 🏁 React Final Form fields
The npm package react-final-form-listeners receives a total of 48,015 weekly downloads. As such, react-final-form-listeners popularity was classified as popular.
We found that react-final-form-listeners demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.