When should you take your lo to the eye doctor?

Given that they don’t have any obvious issues with their eyes. I have had horrible eye sight since elementary school so I’m wondering when would I be able to know that my lo got my eyesight?