I am learning étale cohomology with Tamme's book. When talking about example of abelian sheaves on the étale site, he mentions the following equality for an abelian group $A$ : let $A_X$ be the constant sheaf associated to $A$ on the étale site of $X$ and $X^{'}\to X$ an étale morphism of schemes, then
$A_X(X^{'})=\mathrm{Hom}_X(X^{'},\coprod_A X)=\prod_{\text{connected components of $X^{'}$}} A$
Now I checked the first equality, but I don't see how the second equality follows when the connected components of $X^{'}$ are not open.
A related question to this is, what are sufficient conditions that ensure that every étale $X$-scheme has finitely many connected components ? It is necessary that $X$ has finitely many connected components, is it also sufficient ? To reformulate, we can, by pulling back to a connected component of $X$, ask the following : if $X$ is a connected scheme, does every étale $X$-scheme have finitely many connected components ?
I suspect it is false, I think we can look for a connected scheme with an open subscheme that has infinitely many connected components (that is something similar to $\mathbf{Q}\subset\mathbf{R}$), but the counterexample must lie outside the noetherian world and so also out of my comfort zone.
What about when X is noetherian ? I had the vague impression that an étale $X$-scheme should then be noetherian, but I'm not so sure about that anymore...