Refractive error, like being short-sighted or long-sighted, has genetic components.
For short-sightedness (the inability to see things in the distance clearly) it's about:
25% if neither parent is short-sighted.
40% if 1 parent is short-sighted.
60% if 2 parents are short-sighted.
The numbers are for Caucasians but you get the idea.
However, short-sightedness tends to develop nearer the age of 10.
Significant ong-sightedness is also highly heritable but the relationship is messier.
And significant long-sightedness tends to present earlier.
Some areas have a pre-scholl vision check but you go to an opticians and get a check if you're not in one of those areas.
P.S. You mention a squint. That seems to have two different meanings depending on local dialect.
Do you mean the narrowing eyes by partailly closing the eyelids or the turning of an eye in or out?
The former is normally nothing serious but a turn in the eye should have been well investigated and discussed with you.
Does that make sense?