Currently, if we are working with results with variants, we cannot update the result information when switching variants in the preview queries.
That's why it was necessary to carry out this task, which involves modifying the payload of the UserSelectedAResultVariant event to send the hash of the preview query of the result to be modified, and creating a mutation in the queriesPreview module to update the result with the new information.
## Motivation and context
Pull request template
Currently, if we are working with results with variants, we cannot update the result information when switching variants in the preview queries. That's why it was necessary to carry out this task, which involves modifying the payload of the UserSelectedAResultVariant event to send the hash of the preview query of the result to be modified, and creating a mutation in the queriesPreview module to update the result with the new information. ## Motivation and contextType of change
What is the destination branch of this PR?
Main
How has this been tested?
Try in primor setup to install this x version locally and change variants in a query preview result.
And add this code in the
plugin.options.ts
:Checklist: