Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Match SSR state, then fix after hydration
As discussed in review, keep initial state in sync with SSR for first render. At hydration `isHydrated` will trigger another render call to update the image to the correct one if different due to art direction usage. Rephrased comments, extracted shared logic from fluid/fixed conditionals (DRY). Doing so fails a test on null image data, so now additionally guard against that early.
- Loading branch information