availity-reactstrap-validation icon indicating copy to clipboard operation
availity-reactstrap-validation copied to clipboard

Render loop with Gatsby

Open ghost opened this issue 6 years ago • 1 comments

Hello !

I'm using Availity Reactstrap Validation on a Gatbsy project for multiples forms. Unfortunately i encounter a strange issue when I go to a page that contains a form. The page and the whole layout is re-rendered many times and I don't know why. Moreover, the number of renderings is totally random. There can be 5 renderings like 50

I'm using custom forms built from the WordPress REST API, but I encounter the same issue with the default example form from the docs. I tried to remove all other dependencies and functionalities but the problem is still the same (I'm using Gatsby V.2)

Has anyone encountered the same problem or have any idea where it can come from? I can provide additional info if needed

ghost avatar Sep 24 '18 08:09 ghost

Since the underlying library is using the legacy context api. There are a few re-renders that do occur when any update to the input is happening.

Possbile duplicate of #14

GoPro16 avatar Jul 27 '19 19:07 GoPro16