Hello! Lately we've been receiving React console errors when launching new A/B tests that we believe are related to a content mismatch during rehydration. For context, in the last test, we were trying to display a different set of headlines on a single page to see which performed better. The class names tend to change, so the elements were being targeted by unique data-attributes.
The React errors are:
422: There was an error while hydrating this Suspense boundary. Switched to client rendering.
418: Hydration failed because the initial UI does not match what was rendered on the server.
425: Text content does not match server-rendered HTML.
Example QA links for this test:
I don't see the errors 100% of the time, but more often than not. I can verify users are still being entered into each experience via console logs, but they don't see the content that corresponds to their experience - they only see the control even though they've been entered into a different experience.
When I changed the test from a total of four experiences to just two, the content displayed more consistently without errors.
In general, the product has been really inconsistent in the past few weeks/months and other tests/QA links only work some of the time. We have tried using the bookmarklet to clear preview link cache and different browsers/devices, but that doesn't change much. Any assistance would be greatly appreciated!
We're eventually planning on changing to a server-side Target implementation, but that's still a work in progress.