Skip to content

About formik performance #3186

Answered by johnrom
onuralpbicer asked this question in Q&A
May 5, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Formik's current API isn't necessarily built for dynamic data like dropping in new components. It is heavily based around the concept of initialValues and updating the values within them. It's not impossible to work around this limitation, but it won't be super straightforward if you planned to use touched on your new fields. This is probably Formik's 2nd biggest limitation currently.

If it's really a page editor, I'd look to WordPress' Gutenberg for inspiration as they are really nailing it over there.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@onuralpbicer
Comment options

@johnrom
Comment options

johnrom May 5, 2021
Collaborator

@onuralpbicer
Comment options

Answer selected by onuralpbicer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants