paint-brush
Improving Formik Performance when it's Slow (Material UI)by@josejaviasilis
8,383 reads
8,383 reads

Improving Formik Performance when it's Slow (Material UI)

by Jose Javi Asilis6mJanuary 11th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

An alternative way to increase Formik’s performance is shown. The problem is the constant re-rendering of Emotion. This method isn’t necessarily exclusive to Material-UI (although MUI is being used as an example here) and this works for both: V4.x and V5.x. The concept is pretty simple: We let the `<TextField />` component handle its own internal state, and then we propagate the change to Formik with an `onBlur `event. This is kind of hacky, but it mostly works.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Improving Formik Performance when it's Slow (Material UI)
Jose Javi Asilis HackerNoon profile picture
Jose Javi Asilis

Jose Javi Asilis

@josejaviasilis

Empowering first time tech startup founders with insights to time-consuming tech challenges

Learn More
LEARN MORE ABOUT @JOSEJAVIASILIS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jose Javi Asilis HackerNoon profile picture
Jose Javi Asilis@josejaviasilis
Empowering first time tech startup founders with insights to time-consuming tech challenges

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite