Describe the bug
Adding the ref to an input from the useIMask hook will cause the component to render 3 times. Admittedly I don't know what is happening within the iMask mounting process, but from a "React" perspective a ref is generally used to avoid triggering renders.
To Reproduce
Using the following code will produce 3 renders when it's first loaded:
Describe the bug Adding the
ref
to an input from theuseIMask
hook will cause the component to render 3 times. Admittedly I don't know what is happening within the iMask mounting process, but from a "React" perspective aref
is generally used to avoid triggering renders.To Reproduce Using the following code will produce 3 renders when it's first loaded:
Expected behavior I would expect the component to only render once.
Environment: