Shared composable state for extended components
Open
Nobody has claimed this yet.
C: VAppBar
C: VAutocomplete
C: VCombobox
C: VSelect
C: VTreeview
performance
T: enhancement
- Dominant language
- TypeScript
- Stars
- 41k
- Forks
- 7.1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 11
Description
Wasted work doing the same thing twice:
- VTreeview calls
useListItemsthen it passes props.items to VList which callsuseListItemsagain - VSelect has its own selection logic but uses VList which does mostly the same thing in nested
Accessing state from child components in render, these all rely on the child being rendered before they can get values from the ref which means multiple re-renders:
- VTreeview uses
childrenandgetPathfrom nested through VList - VTreeviewItem uses state from
useLinkanduseNestedItemthrough VListItem - VAppbar uses state from its VToolbar
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the named components and composables: VTreeview, VList, VSelect, VTreeviewItem, VAppbar, useListItems, useLink, and useNestedItem. Determine how shared state could avoid duplicate work and render-order-dependent re-renders; done means the affected components share the relevant state without repeated composable work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100