GitShow/jaredpalmer/formik
jaredpalmer

formik

Build forms in React, without the tears ๐Ÿ˜ญ

by jaredpalmer
formformikformshigher-order-componenthooksreactreact-hooksreact-native
Star on GitHubForkWebsitenpm

TypeScript

34.3k stars2.8k forks461 contributorsQuiet ยท 10mo agoSince 2017formik@2.4.9Apache-2.0

Meet the team

See all 461 on GitHub โ†’
jaredpalmer
jaredpalmer1.2k contributions
quantizor
quantizor27 contributions
github-actions[bot]Bot
github-actions[bot]26 contributions
maddhruv
maddhruv9 contributions
snyk-bot
snyk-bot9 contributions
imgbot[bot]Bot
imgbot[bot]9 contributions
Andreyco
Andreyco8 contributions
johnrom
johnrom8 contributions

Languages

View on GitHub โ†’
TypeScript94%
JavaScript4%
CSS1.9%
Shell0%

Commit activity

Last 12 weeks ยท 0 commits

Full graph โ†’

Community health

4 of 6 standards met

Community profile โ†’
100
โœ“READMEโœ“Licenseโœ“Contributingโœ“Code of Conductโ—‹Issue Templateโ—‹PR Template

Recent PRs & issues

Quiet ยท Last activity 10mo ago
See all on GitHub โ†’
Hashim1999164
fix: add optional @types/react peerDependency for pnpmOpenPR

Summary Adds as an optional peer dependency so Formik's shipped files resolve under strict pnpm (). Marks it optional via so JS-only consumers are not warned. Fixes #4063 Test plan [ ] Confirm lists under and [ ] In a pnpm project with , installing + should typecheck without for [ ] Existing npm/yarn installs should be unchanged

Hashim1999164 ยท 1d ago
kanza-shahid-dev
fix: validate consecutive setFieldValue calls correctlyOpenPR

Description Fixes #3754 Fixes an issue where multiple consecutive calls could trigger validation using stale form values. When was called multiple times asynchronously, the validation triggered by a later call could use an outdated . This could result in stale validation errors even though the form values had already been updated. Changes Build the validation values from when handling . Pass those current values to . Add a regression test covering multiple asynchronous calls with a Yup validation schema. Testing โ€” 89 tests passed โ€” 227 tests passed โ€” passed

kanza-shahid-dev ยท 3d ago
matt-sanders
Multiple calls to setFieldValue inside async action result in form errorsOpenIssue

Bug report Current Behavior We have a use case where fields need to be updated as the result of an async function, very similar to this example. However, we would like to update multiple fields. We find that when we use things work as expected, however when we make multiple calls to it results in an error. This doesn't happen if the calls to happen as an immediate callback ( e.g. from a button ) but when the callback happens after an async action, things go a little awry. The obvious, initial solution is to just use , but we may want to update these fields individually given certain circumstances ( e.g. if x, then update y but not z ) Expected behavior Multiple calls to should not trigger validation errors when the form is valid. Reproducible example Live example: https://d4pe7b.csb.app/ Codesandbox: https://codesandbox.io/s/proud-wind-d4pe7b?file=/src/App.js Your environment

matt-sanders ยท 3d ago

Recent fixes

View closed PRs โ†’
tsekityam
set onBlur to TextFields in material-ui exampleMergedPR

set to TextFields based on the suggestion from @jeffbski

tsekityam ยท 1w ago
Structured data for AI agents

Repository: jaredpalmer/formik. Description: Build forms in React, without the tears ๐Ÿ˜ญ Stars: 34317, Forks: 2779. Primary language: TypeScript. Languages: TypeScript (94%), JavaScript (4%), CSS (1.9%), Shell (0%). License: Apache-2.0. Homepage: https://formik.org Topics: form, formik, forms, higher-order-component, hooks, react, react-hooks, react-native, render-props. Latest release: formik@2.4.9 (10mo ago). Open PRs: 100, open issues: 742. Last activity: 10mo ago. Community health: 100%. Top contributors: jaredpalmer, quantizor, github-actions[bot], maddhruv, snyk-bot, imgbot[bot], Andreyco, johnrom, prichodko, hmmChase and others.

ยท@ofershap

Replace github.com with gitshow.dev