sci-components
sci-components copied to clipboard
fix(complexfilter): fixes infinite re-render issue for SSR hydration
Summary
Structural Element (Base, Gene, DNA, Chromosome or Cell) Github issue: #827 Initial loading of the data portal results in an infinite re-render bug with the latest version of SDS
Fixes issue with the complex filter causing infinite re-rendering on the data portal on initial load.
Demo
Before
https://github.com/user-attachments/assets/5d5ede70-62db-4ef3-8c37-acdc6f08e1c8
After
https://github.com/user-attachments/assets/d01caa1b-7ee3-44c6-a0d3-33382ded2589
Checklist
- [ ] Default Story in Storybook
- [ ] LivePreview Story in Storybook
- [ ] Test Story in Storybook
- [ ] Tests written
- [ ] Variables from
defaultTheme.ts
used wherever possible - [ ] If updating an existing component, depreciate flag has been used where necessary
- [ ] Chromatic build verified by @chanzuckerberg/sds-design