Commit Graph

4 Commits (6c7d6b1e2f374599d04950eb83515f2b113c3b24)

Author SHA1 Message Date
Avin 5495aa8e01
Fix 2 years ago
Trey Smith 8d313a9472 run prettier 2 years ago
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.
2 years ago
Alex Dima 091f871e65
Rename to `/samples/` 3 years ago