-
Notifications
You must be signed in to change notification settings - Fork 51
feat(List): add proper support for children API #2207
Conversation
Changed dependencies are detected.Changed dependencies in
Perf comparison
Potential regressions comparing to master
Perf tests with no regressions
Generated by 🚫 dangerJS |
0d29ba2 to
ae9b5a3
Compare
ae9b5a3 to
3cea7da
Compare
0ddcd33 to
3d3b429
Compare
| } | ||
| }, | ||
| }) | ||
| [actions], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having actions as the only dependency means you can get stale props in onSelectedIndexChange cb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, you're totally right. I will tackle this separately
| variables, | ||
| } = props | ||
|
|
||
| const parentProps = useContextSelectors(ListContext, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The typings does not seem to be strict enough to allow only the valid keys and values.
Let's verify it together offline.
…m/stardust-ui/react into proto/list-context � Conflicts: � packages/react-context-selector/README.md � packages/react-context-selector/package.json � packages/react-context-selector/src/createContext.ts � packages/react-context-selector/src/index.ts � packages/react-context-selector/src/types.ts � packages/react-context-selector/src/useContextSelector.ts � packages/react-context-selector/src/useContextSelectors.ts � packages/react-context-selector/test/createContext-test.tsx
…m/stardust-ui/react into proto/list-context � Conflicts: � docs/src/examples/components/List/Performance/index.tsx � packages/react-bindings/src/hooks/useStateManager.ts � packages/react-bindings/test/hooks/useAutoControlled-test.tsx � packages/react-bindings/test/hooks/useStateManager-test.tsx
…m/stardust-ui/react into proto/list-context � Conflicts: � CHANGELOG.md
This PR uses
context-selectorsto add full support for Children API inListcomponent.Performance 🏎
There is no real difference between shorthand/Context usage.
With Context usage
Previous implementation