百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

formik-persist

> 前端框架
开源

将 Formik 表单持久化并重新加载到 localStorage 中

375 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

将 Formik 表单持久化并重新加载到 localStorage 中

Formik Persist

Persist and rehydrate a Formik form.

bash
npm install formik-persist --save

Basic Usage

Just import the `` component and put it inside any Formik form. It renders null!

javascript
import React from 'react'
import { Formik, Field, Form } from 'formik'
import { Persist } from 'formik-persist'

export const Signup = () =>
  
;

Props

Only three props!

  • name: string: LocalStorage key to save form state to
  • debounce:? number: Default is 300. Number of ms to debounce the function that saves form state.
  • isSessionStorage:? boolean: default is false . Send if you want Session storage inplace of Local storage

Author

  • Jared Palmer @jaredpalmer

Todo

  • Alternative storages (localForage)
  • Support AsyncStorage for React Native

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptformformikformsreact

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架