Commit graph

4 commits

Author SHA1 Message Date
Avin
5495aa8e01
Fix 2023-03-21 20:29:23 +05:30
Trey Smith
8d313a9472 run prettier 2023-01-18 11:13:40 -05:00
Trey Smith
1aa33634de
Fix possible duplicate of editors in vite sample
In testing the vite sample, I could see duplicate editors created on the screen. From what I can tell, this was due to the if statement checking if editor was null in the `useEffect`. However, the editor variable would not be updated on the first re-render causing a double instance. I adjusted the editor check to be inside the `state dispatch` since it would have the most current information. This seems to have fixed the issue on my end.
2022-11-01 10:29:21 -04:00
Alex Dima
091f871e65
Rename to /samples/ 2021-11-16 22:01:11 +01:00