Currently it is possible to shuffle rows in spatialCoords, so that these rows become out of sync with the rows in colData.
We could think about protecting against this in some way, either using rownames of spatialCoords, or some other way.
It would be best to have similar behavior to reducedDims, which returns a warning (error in next version of Bioconductor):

Currently it is possible to shuffle rows in
spatialCoords, so that these rows become out of sync with the rows incolData.We could think about protecting against this in some way, either using rownames of
spatialCoords, or some other way.It would be best to have similar behavior to
reducedDims, which returns a warning (error in next version of Bioconductor):