fix data-processing hard refresh bug#1060
Conversation
Signed-off-by: Alex Pickering <alexvpickering@gmail.com>
|
Great job! No new security vulnerabilities introduced in this pull requestUse @Checkmarx to interact with Checkmarx PR Assistant. |
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster. Any third party scripts you have added directly to your app using the If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! |

Description
Fix React 18 SSR hydration for data-processing page
Use wrapper.getInitialAppProps() for proper Redux state serialization and
client-side HYDRATE action dispatch during Next.js SSR hydration.
Previously, the manual getInitialProps implementation didn't trigger the
HYDRATE action on the client, causing Redux state to be empty during hard
refresh. Server correctly loaded experiment data with 24 samples, but client
received empty sampleIds array due to hydration mismatch.
Changes:
Fixes plots not showing and filters appearing disabled on hard refresh of
data-processing page.
Details
URL to issue
N/A
Link to staging deployment URL (or set N/A)
N/A
Links to any PRs or resources related to this PR
Integration test branch
master
Merge checklist
Your changes will be ready for merging after all of the steps below have been completed.
Code updates
Have best practices and ongoing refactors being observed in this PR
Manual/unit testing
Integration testing
You must check the box below to run integration tests on the latest commit on your PR branch.
Integration tests have to pass before the PR can be merged. Without checking the box, your PR
will not pass the required status checks for merging.
Documentation updates
Optional