fix(gatsby): set staticQueryResultHash to new hash on data change (#32949)
fix(gatsby): set staticQueryResultHash to new hash on data change (#32949)

Co-authored-by: gatsbybot <313a651c59fdaade90d152972001707d94b0975c@gmail.com>
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby