
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
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 39,259 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.