refine-frontends icon indicating copy to clipboard operation
refine-frontends copied to clipboard

Don't call the `onChange` callback on the first render

Open davecalnan opened this issue 1 year ago • 1 comments

This PR:

  • Fixes the error from React about updating the component while rendering by skipping calling the onChange callback during the first render

Before

Screenshot 2022-09-07 at 19 59 11

After

Screenshot 2022-09-07 at 19 59 29

davecalnan avatar Sep 07 '22 18:09 davecalnan